be sure we have our generated sources with us.
authorPierre Habouzit <madcoder@debian.org>
Thu, 10 May 2007 20:17:12 +0000 (22:17 +0200)
committerPierre Habouzit <madcoder@debian.org>
Thu, 10 May 2007 20:17:12 +0000 (22:17 +0200)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Makefile

index 2f96388..a3519e6 100644 (file)
--- 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