From: Roy Marples Date: Mon, 4 Nov 2019 20:21:30 +0000 (+0000) Subject: build: Improve import-src target X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1b2006f3c2ae1e021cc504fe18e08011a6e9414;p=thirdparty%2Fdhcpcd.git build: Improve import-src target Incase a supposed source file file does not exist. --- diff --git a/src/Makefile b/src/Makefile index 03fa68b3..d127f4ea 100644 --- a/src/Makefile +++ b/src/Makefile @@ -140,7 +140,9 @@ distclean: clean _import-src: ${SRCS} ${INSTALL} -d ${DESTDIR}/src touch if-bsd.h if-linux.h if-sun.h - cp defs.h ${SRCS} ${SRCS:.c=.h} dev.h ${MAN5}.in ${MAN8}.in ${DESTDIR}/src + for x in defs.h ${SRCS} ${SRCS:.c=.h} dev.h ${MAN5}.in ${MAN8}.in; do \ + cp $$x ${DESTDIR}/src; \ + done cp dhcpcd.conf ${DESTDIR}/src rm if-bsd.h if-linux.h if-sun.h rm -f ${DESTDIR}/src/if-bsd.h ${DESTDIR}/src/if-linux.h ${DESTDIR}/src/if-sun.h