From 7e05800cefd742ff5991931d69cc28791a06a476 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 31 May 2016 22:59:49 -0400 Subject: use autothing --- Makefile | 26 ++++++++++++++------------ 1 file 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 -- cgit v1.2.3