Aggiustato makefile

Leonardo Robol [2010-09-04 09:34]
Aggiustato makefile
Filename
Makefile
diff --git a/Makefile b/Makefile
index 118bf90..367b891 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 SCRIPT_FILE=99_poisson_vpn.py
-NM_DISPATCHER_DIR=/etc/NetworkManager/dispatcher.d/
+NM_DISPATCHER_DIR=$(DESTDIR)/etc/NetworkManager/dispatcher.d/

 all:
 	@echo ""
@@ -11,6 +11,7 @@ all:
 	@echo ""

 install:
+	mkdir -p $(NM_DISPATCHER_DIR)
 	install -m 755 -o root $(SCRIPT_FILE) $(NM_DISPATCHER_DIR)

 uninstall:
ViewGit