Updated Makefile

Thanks to Sebastinas
This commit is contained in:
Moritz Lipp 2010-07-08 12:41:56 +02:00
parent eae4e48877
commit f3218c2d68

View File

@ -28,8 +28,14 @@ options:
${OBJECTS}: config.h config.mk ${OBJECTS}: config.h config.mk
${DOBJECTS}: config.h config.mk ${DOBJECTS}: config.h config.mk
config.h: config.h: config.def.h
@cp config.def.h $@ @if [ -f $@ ] ; then \
echo "config.h exists, but config.def.h is newer. Please check your" \
"config.h or ${PROJECT} might fail to build." ; \
else \
cp -p $< $@ ; \
touch $@ ; \
fi
${PROJECT}: ${OBJECTS} ${PROJECT}: ${OBJECTS}
@echo CC -o $@ @echo CC -o $@