Blob Blame Raw
diff -Naur deutex-4.4.0/Makefile deutex-4.4.0.new/Makefile
--- deutex-4.4.0/Makefile	2006-03-18 15:53:16.000000000 -0800
+++ deutex-4.4.0.new/Makefile	2006-03-18 16:31:25.000000000 -0800
@@ -14,10 +14,10 @@
 #   Others  Don't know. Send feedback to the maintainer.
 #
 
-PREFIX=/usr/local
+PREFIX=/usr
 
 # Compiled by users
-CFLAGS   = -O2
+CFLAGS   := -O2
 CC       = cc
 LDFLAGS  =
 
@@ -190,10 +190,10 @@
 	touch $@
 
 install:
-	install -p -m 0755 deutex   $(PREFIX)/bin
-	install -p -m 0755 deusf    $(PREFIX)/bin
-	install -p -m 0644 deutex.6 $(PREFIX)/man/man6
-	ln -sf deutex.6             $(PREFIX)/man/man6/deusf.6
+	install -pD -m 0755 deutex   $(DESTDIR)$(PREFIX)/bin/deutex
+	install -pD -m 0755 deusf    $(DESTDIR)$(PREFIX)/bin/deusf
+	install -pD -m 0644 deutex.6 $(DESTDIR)$(PREFIX)/share/man/man6/deutex.6
+	install -pD -m 0644 deutex.6 $(DESTDIR)$(PREFIX)/share/man/man6/deusf.6
 
 src/version.c: VERSION
 	printf "const char deutex_version[] = \"%s\";\n" $(VERSION) >$@