Refuse to import-src without being configured

This commit is contained in:
Roy Marples 2025-02-12 18:48:35 +00:00
parent 8beb42b626
commit 4d583c4f41

View File

@ -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; \