summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-09-19 13:00:45 +0000
committerRoy Marples <roy@marples.name>2016-09-19 13:00:45 +0000
commitc4cf220370102449370a51c8a32b3e08505fd579 (patch)
tree5706ce985a1023d48333d8fae35dd8c686a26a5d /Makefile
parent95aae80fea4bbf09985655ed4cb208eedb717670 (diff)
downloaddhcpcd-c4cf220370102449370a51c8a32b3e08505fd579.tar.xz
Make import now imports the files needed to generate dhcpcd-embedded.{c,h}
and bundles a small definition.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 253678c1..1fd6808c 100644
--- a/Makefile
+++ b/Makefile
@@ -127,6 +127,8 @@ _confinstall:
${INSTALL} -d ${DESTDIR}${SYSCONFDIR}
test -e ${DESTDIR}${SYSCONFDIR}/dhcpcd.conf || \
${INSTALL} -m ${CONFMODE} dhcpcd.conf ${DESTDIR}${SYSCONFDIR}
+hooks:
+ cd dhcpcd-hooks; ${MAKE}; cd ..; done
eginstall:
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done
@@ -153,13 +155,19 @@ snapshot:
tar cf - -C /tmp ${DISTPREFIX} | xz >${DISTFILE}
ls -l ${DISTFILE}
-import: ${SRCS}
+import: ${SRCS} hooks
rm -rf /tmp/${DISTPREFIX}
${INSTALL} -d /tmp/${DISTPREFIX}
- cp ${SRCS} dhcpcd.conf dhcpcd-definitions.conf *.in /tmp/${DISTPREFIX}
- cp $$(${CC} ${CPPFLAGS} -DDEPGEN -MM ${SRCS} | \
+ cp genembedc genembedh /tmp/${DISTPREFIX}
+ cp $$(echo ${SRCS} | sed -e 's/\(dhcpcd-embedded.[ch]\)/\1.in/') \
+ /tmp/${DISTPREFIX}
+ cp dhcpcd.conf dhcpcd-definitions.conf *.in /tmp/${DISTPREFIX}
+ cp dhcpcd-definitions-small.conf *.in /tmp/${DISTPREFIX}
+ cp $$(${CC} ${CPPFLAGS} -DDEPGEN -MM \
+ $$(echo ${SRCS} | sed -e 's/dhcpcd-embedded.c//') | \
sed -e 's/^.*\.c //g' -e 's/.*\.c$$//g' -e 's/\\//g' | \
tr ' ' '\n' | \
+ sed -e '/^dhcpcd-embedded.h$$/d' | \
sed -e '/^compat\//d' | \
sed -e '/^crypt\//d' | \
sort -u) /tmp/${DISTPREFIX}; \