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 ${OBJ}: config.h config.mk
config.h: config.h: config.def.h
@echo creating $@ from 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
@cp config.def.h $@ @echo creating $@ from $<
@cp $< $@
dunst: ${OBJ} dunst: ${OBJ}
@echo "${CC} ${CFLAGS} -o $@ ${OBJ} ${LDFLAGS}" @echo "${CC} ${CFLAGS} -o $@ ${OBJ} ${LDFLAGS}"