Abort build if config.h needs to be updated

close #179

Thanks progandy
This commit is contained in:
Sascha Kruse 2014-06-16 22:00:42 +02:00
parent 3c841c418a
commit f48d512223

View File

@ -33,9 +33,10 @@ options:
${OBJ}: config.h config.mk
config.h:
@echo creating $@ from config.def.h
@cp config.def.h $@
config.h: config.def.h
@if test -s $@; then echo $< is newer than $@, merge and save $@. If you haven\'t edited $@ you can just delete it && exit 1; fi
@echo creating $@ from $<
@cp $< $@
dunst: ${OBJ}
@echo "${CC} ${CFLAGS} -o $@ ${OBJ} ${LDFLAGS}"