File fxload-2002_04_11.patch of Package fxload

---
 Makefile |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,12 @@
 # Builds "fxload" binaries, distribution tarball, and RPMs.
 #
 
-prefix =		/
+prefix =		/usr
 exec_prefix =		${prefix}
-sbindir =		${exec_prefix}/sbin
-mandir =		${prefix}/usr/share/man
+sbindir =		/usr/sbin
+mandir =		${prefix}/share/man
+
+DESTDIR =
 
 INSTALL =		/usr/bin/install -cD
 INSTALL_PROGRAM =	${INSTALL}
@@ -59,9 +61,9 @@ clean:
 
 # install, from tarball or for binary RPM
 install: $(PROG)
-	$(INSTALL_PROGRAM) $(PROG) $(sbindir)/$(PROG)
-	$(INSTALL_PROGRAM) -m 0644 $(PROG).8 $(mandir)/man8/$(PROG).8
-	$(INSTALL_PROGRAM) -m 0644 a3load.hex $(prefix)/usr/share/usb/a3load.hex
+	$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
+	$(INSTALL_PROGRAM) -m 0644 $(PROG).8 $(DESTDIR)$(mandir)/man8/$(PROG).8
+	$(INSTALL_PROGRAM) -m 0644 a3load.hex $(DESTDIR)/usr/share/usb/a3load.hex
 
 
 # make a source tarball