starter: Add the correct keywords header file to EXTRA_DIST
The fix for gperf in0ae19f0cedadded the generated header to EXTRA_DIST but that's already added to the distribution because it is contained in *_SOURCES, what was not added, though, was the .h.in file. Also fixes the reference to the header file in the .c rule here and for stroke in out-of-tree builds. Fixes:0ae19f0ced("configure: Fix gperf length parameter determination")
This commit is contained in:
@@ -39,7 +39,7 @@ starter_LDADD = \
|
|||||||
libstarter.la \
|
libstarter.la \
|
||||||
$(SOCKLIB) $(PTHREADLIB) $(ATOMICLIB)
|
$(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
|
MAINTAINERCLEANFILES = keywords.h keywords.c
|
||||||
BUILT_SOURCES = keywords.h keywords.c parser/parser.h
|
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):" \
|
-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) \
|
$(AM_V_GEN) \
|
||||||
$(GPERF) -m 10 -C -G -D -t < $(srcdir)/keywords.txt > $@
|
$(GPERF) -m 10 -C -G -D -t < $(srcdir)/keywords.txt > $@
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,6 @@ stroke_keywords.h: $(srcdir)/stroke_keywords.h.in
|
|||||||
-e "s:\@GPERF_LEN_TYPE\@:$(GPERF_LEN_TYPE):" \
|
-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) \
|
$(AM_V_GEN) \
|
||||||
$(GPERF) -m 10 -D -C -G -t < $(srcdir)/stroke_keywords.txt > $@
|
$(GPERF) -m 10 -D -C -G -t < $(srcdir)/stroke_keywords.txt > $@
|
||||||
|
|||||||
Reference in New Issue
Block a user