altermime (0.3.10-4) 01_makefile_destdir.diff

Summary

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

    
download this patch

Patch contents

Description: Adds ${DESTDIR} variable to Makefile
Author: Julien Valroff <julien@kirya.net>
Forwarded: not-needed

--- a/Makefile
+++ b/Makefile
@@ -25,11 +25,11 @@
 # Build Install
 install: altermime
 	strip altermime
-	cp altermime /usr/local/bin
-	chmod a+rx /usr/local/bin/altermime
+	cp altermime ${DESTDIR}
+	chmod a+rx ${DESTDIR}/altermime
 
 uninstall:
-	rm -f /usr/local/bin/altermime
+	rm -f ${DESTDIR}/altermime
 
 clean:
 	rm -f *.o altermime