From: Pierre Habouzit Date: Thu, 10 May 2007 20:17:12 +0000 (+0200) Subject: be sure we have our generated sources with us. X-Git-Url: http://git.madism.org/?p=apps%2Fpfixtools.git;a=commitdiff_plain;h=4fe282310226fdfc4a5c7b9c4131e6e5ba96315f be sure we have our generated sources with us. Signed-off-by: Pierre Habouzit --- diff --git a/Makefile b/Makefile index 2f96388..a3519e6 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ postlicyd_LIBADD = -lanl # RULES ###################################################################{{{ -all: $(PROGRAMS) +all: $(PROGRAMS) $(GENERATED) | $(GENERATED) clean: $(RM) $(PROGRAMS) @@ -64,10 +64,10 @@ headers: ( echo "package headache not installed" ; exit 1 ) @git ls-files | egrep '(\.h|\.c|Makefile|*\.mk)$$' | xargs -t headache $(HEADACHEOPTS) -%.c: %.sh +%.h: %.sh ./$< $@ || ($(RM) $@; exit 1) -%.h: %.sh +%.c: %.sh ./$< $@ || ($(RM) $@; exit 1) .%.o: %.c Makefile