summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-31 22:59:49 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-31 22:59:49 -0400
commit7e05800cefd742ff5991931d69cc28791a06a476 (patch)
treed475cacb980cc5e7a8c0cc887896e3ff5f2b0020 /Makefile
parent68b0b7925b24f9ba8fc10566c94cbf570cd46342 (diff)
use autothing
Diffstat (limited to 'Makefile')
-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