summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile26
1 files changed, 14 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index aba7708..26e6a38 100644
--- a/Makefile
+++ b/Makefile
@@ -3,20 +3,22 @@
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See the COPYING file for more details.
-install-targets = \
- $(DESTDIR)/etc/netctl/hooks/network-online \
- $(DESTDIR)/lib/systemd/system/network-online@.service \
- $(DESTDIR)/lib/network/network-online
+PACKAGE = netctl-network-online
+topsrcdir = .
+topoutdir = .
+include $(topsrcdir)/build-aux/Makefile.head.mk
-all:
-install: $(install-targets)
-uninstall:
- rm -f -- $(install-targets)
-.PHONY: all install uninstall
+std.src_files = $(shell git ls-files)
+std.sys_files = \
+ $(sysconfdir)/netctl/hooks/network-online \
+ $(prefix)/lib/systemd/system/network-online@.service \
+ $(prefix)/lib/network/network-online
-$(DESTDIR)/etc/netctl/hooks/network-online: netctl-hook
+$(DESTDIR)$(sysconfdir)/netctl/hooks/network-online: netctl-hook
install -Dm755 $< $@
-$(DESTDIR)/lib/systemd/system/network-online@.service: network-online@.service
+$(DESTDIR)$(prefix)/lib/systemd/system/network-online@.service: network-online@.service
install -Dm644 $< $@
-$(DESTDIR)/lib/network/network-online: network-online
+$(DESTDIR)$(prefix)/lib/network/network-online: network-online
install -Dm755 $< $@
+
+include $(topsrcdir)/build-aux/Makefile.tail.mk