aboutsummaryrefslogtreecommitdiffstats
path: root/dhcpcd-hooks/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpcd-hooks/Makefile')
-rw-r--r--dhcpcd-hooks/Makefile26
1 files changed, 16 insertions, 10 deletions
diff --git a/dhcpcd-hooks/Makefile b/dhcpcd-hooks/Makefile
index cfb19f7..7563d2d 100644
--- a/dhcpcd-hooks/Makefile
+++ b/dhcpcd-hooks/Makefile
@@ -1,13 +1,19 @@
-LIBEXECDIR?= ${PREFIX}/libexec
-HOOKDIR= ${LIBEXECDIR}/dhcpcd-hooks
-SYSTEMSCRIPTS= 01-test 10-mtu 20-resolv.conf 30-hostname
-FILES= ${SYSTEMSCRIPTS} ${HOOKSCRIPTS}
-FILESDIR= ${HOOKDIR}
+TOP?= ../
+include ${TOP}/Makefile.inc
+include ${TOP}/config.mk
+
+SCRIPTSDIR= ${LIBEXECDIR}/dhcpcd-hooks
+SCRIPTS= 01-test 02-dump
+SCRIPTS+= 10-mtu 20-resolv.conf 29-lookup-hostname 30-hostname
+SCRIPTS+= ${HOOKSCRIPTS}
all:
-MK= ../mk
-include ${MK}/os.mk
-include ${MK}/sys.mk
-include ${MK}/files.mk
-install: _filesinstall
+install:
+ ${INSTALL} -d ${DESTDIR}${SCRIPTSDIR}
+ ${INSTALL} -m ${NONBINMODE} ${SCRIPTS} ${DESTDIR}${SCRIPTSDIR}
+
+import:
+ ${INSTALL} -d /tmp/${DISTPREFIX}/dhcpcd-hooks
+ ${INSTALL} -m ${NONBINMODE} ${SCRIPTS} /tmp/${DISTPREFIX}/dhcpcd-hooks
+