From: Roy Marples Date: Wed, 12 Feb 2025 18:48:35 +0000 (+0000) Subject: Refuse to import-src without being configured X-Git-Tag: v10.2.1~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d583c4f4136eb427be4cc735343d024793348d2;p=thirdparty%2Fdhcpcd.git Refuse to import-src without being configured --- diff --git a/src/Makefile b/src/Makefile index caafde03..8027778f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -118,6 +118,10 @@ distclean: clean rm -f *.diff *.patch *.orig *.rej _import-src: ${SRCS} ${MAN5} ${MAN8} + @if ! [ -e ../config.h ]; then \ + echo "Cowardly refusing to import-src unless configured" >&2; \ + exit 1; \ + fi ${INSTALL} -d ${DESTDIR}/src for x in defs.h ${SRCS} ${SRCS:.c=.h} dev.h ${MAN5} ${MAN8}; do \ [ ! -e "$$x" ] || cp $$x ${DESTDIR}/src; \