diff --git a/src/starter/Makefile.am b/src/starter/Makefile.am index c806e37e1..457c0650e 100644 --- a/src/starter/Makefile.am +++ b/src/starter/Makefile.am @@ -39,7 +39,7 @@ starter_LDADD = \ libstarter.la \ $(SOCKLIB) $(PTHREADLIB) $(ATOMICLIB) -EXTRA_DIST = keywords.h keywords.txt ipsec.conf ipsec.secrets Android.mk +EXTRA_DIST = keywords.h.in keywords.txt ipsec.conf ipsec.secrets Android.mk MAINTAINERCLEANFILES = keywords.h keywords.c BUILT_SOURCES = keywords.h keywords.c parser/parser.h @@ -53,7 +53,7 @@ keywords.h: $(srcdir)/keywords.h.in -e "s:\@GPERF_LEN_TYPE\@:$(GPERF_LEN_TYPE):" \ $< > $@ -keywords.c: $(srcdir)/keywords.txt $(srcdir)/keywords.h +keywords.c: $(srcdir)/keywords.txt keywords.h $(AM_V_GEN) \ $(GPERF) -m 10 -C -G -D -t < $(srcdir)/keywords.txt > $@ diff --git a/src/stroke/Makefile.am b/src/stroke/Makefile.am index e55e2030f..5c04b5ae7 100644 --- a/src/stroke/Makefile.am +++ b/src/stroke/Makefile.am @@ -17,6 +17,6 @@ stroke_keywords.h: $(srcdir)/stroke_keywords.h.in -e "s:\@GPERF_LEN_TYPE\@:$(GPERF_LEN_TYPE):" \ $< > $@ -stroke_keywords.c: $(srcdir)/stroke_keywords.txt $(srcdir)/stroke_keywords.h +stroke_keywords.c: $(srcdir)/stroke_keywords.txt stroke_keywords.h $(AM_V_GEN) \ $(GPERF) -m 10 -D -C -G -t < $(srcdir)/stroke_keywords.txt > $@