Skip to content

Commit

Permalink
Abort build if config.h needs to be updated
Browse files Browse the repository at this point in the history
close dunst-project#179

Thanks progandy
  • Loading branch information
knopwob committed Jun 16, 2014
1 parent 3c841c4 commit f48d512
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit f48d512

Please sign in to comment.