summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2202bb7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+install-targets = \
+ $(DESTDIR)/etc/netctl/hooks/network-online \
+ $(DESTDIR)/lib/systemd/system/network-online@.service \
+ $(DESTDIR)/lib/network/network-online
+
+install: $(install-targets)
+uninstall:
+ rm -f -- $(install-targets)
+.PHONY: install uninstall
+
+$(DESTDIR)/etc/netctl/hooks/network-online: netctl-hook
+ install -Dm755 $< $@
+$(DESTDIR)/lib/systemd/system/network-online@.service: network-online@.service
+ install -Dm644 $< $@
+$(DESTDIR)/lib/network/network-online: network-online
+ install -Dm755 $< $@
+