mirror of
https://github.com/NetworkConfiguration/dhcpcd.git
synced 2026-01-26 14:13:26 +00:00
Refuse to import-src without being configured
This commit is contained in:
parent
8beb42b626
commit
4d583c4f41
@ -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; \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user