summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 15 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 132420e..fabac1c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,18 @@
-mtu1280: mtu1280d.c
- gcc -o mtu1280 mtu1280d.c -lnetfilter_queue
+mtu1280d: mtu1280d.c
+ gcc -o mtu1280d mtu1280d.c -lnetfilter_queue
install: mtu1280d
- /usr/bin/install -c mtu1280d /usr/sbin/mtu1280d
- \ No newline at end of file
+ /usr/bin/install -c mtu1280d /usr/sbin/
+
+upstart: install
+ /usr/bin/install -c upstart/mtu1280d /etc/init/
+
+init.d: install
+ /usr/bin/install -c init.d/mtu1280d /etc/init.d/
+ update-rc.d mtu1280d defaults
+ update-rc.d mtu1280d enable
+remove:
+ @echo "Removing any previous installation (including startup scripts) of mtu1280d"
+ rm -fr /usr/sbin/mtu1280d /etc/init/mtu1280d /etc/init.d/mtu1280d
+ update-rc.d mtu1280d remove