Warn if Makefile is out of date

This commit is contained in:
Jeremy Lakeman 2014-05-09 15:27:23 +09:30
parent 796eb6268c
commit 4a2b54de1b

View File

@ -72,6 +72,12 @@ version.o: *.h *.c version_string.sh VERSION.txt COPYRIGHT.txt Makefile
VERSION.txt:
Makefile: $(wildcard Makefile.in) $(wildcard configure)
$(warning Makefile may be out of date, please run ./configure)
configure: $(wildcard configure.in)
$(warning configure may be out of date, please run autoreconf -f -i)
%.o: %.c
@echo CC $<
@$(CC) $(CFLAGS) $(DEFS) -c $< -o $@