1 TOP?= ../ 2 include ${TOP}/Makefile.inc 3 include ${TOP}/iconfig.mk 4 5 SCRIPTSDIR= ${LIBEXECDIR}/dhcpcd-hooks 6 SCRIPTS= 01-test 02-dump 7 SCRIPTS+= 10-mtu 10-wpa_supplicant 15-timezone 20-resolv.conf 8 SCRIPTS+= 29-lookup-hostname 30-hostname 9 SCRIPTS+= ${HOOKSCRIPTS} 10 11 50-ypbind: 50-ypbind.in 12 ${SED} \ 13 -e 's:@YPDOMAIN_DIR@:${YPDOMAIN_DIR}:g' \ 14 -e 's:@YPDOMAIN_SUFFIX@:${YPDOMAIN_SUFFIX}:g' \ 15 50-ypbind.in > $@ 16 17 all: ${HOOKSCRIPTS} 18 19 clean: 20 rm -f 50-ypbind 21 22 proginstall: ${HOOKSCRIPTS} 23 ${INSTALL} -d ${DESTDIR}${SCRIPTSDIR} 24 ${INSTALL} -m ${NONBINMODE} ${SCRIPTS} ${DESTDIR}${SCRIPTSDIR} 25 26 install: proginstall 27 28 import: ${HOOKSCRIPTS} 29 ${INSTALL} -d /tmp/${DISTPREFIX}/dhcpcd-hooks 30 ${INSTALL} -m ${NONBINMODE} ${SCRIPTS} /tmp/${DISTPREFIX}/dhcpcd-hooks 31