Makefile: error out if ./configure wasn't executed before the 'all' target.

This commit is contained in:
Juan RP 2013-02-01 14:59:32 +01:00
parent bdcdb9f1a0
commit b3da4a2bf2

View File

@ -12,6 +12,10 @@ endif
.PHONY: all
all:
@if test ! -e config.h; then \
echo "You didn't run ./configure ... exiting."; \
exit 1; \
fi
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir || exit 1; \
done