Fix issue with $< automatic variable on FreeBSD
BSD make only evaluates $< for implicit rules, so building from the repository won't work unless GNU make is installed and used, or we replace affected uses like this.
This commit is contained in:
parent
0a29ace908
commit
535277afc5
|
@ -231,13 +231,13 @@ $(srcdir)/crypto/proposal/proposal_keywords_static.h: $(srcdir)/crypto/proposal/
|
||||||
$(AM_V_GEN) \
|
$(AM_V_GEN) \
|
||||||
sed \
|
sed \
|
||||||
-e "s:\@GPERF_LEN_TYPE\@:$(GPERF_LEN_TYPE):" \
|
-e "s:\@GPERF_LEN_TYPE\@:$(GPERF_LEN_TYPE):" \
|
||||||
$< > $@
|
$(srcdir)/crypto/proposal/proposal_keywords_static.h.in > $@
|
||||||
|
|
||||||
$(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
|
$(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
|
||||||
$(srcdir)/crypto/proposal/proposal_keywords_static.h
|
$(srcdir)/crypto/proposal/proposal_keywords_static.h
|
||||||
$(AM_V_GEN) \
|
$(AM_V_GEN) \
|
||||||
$(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D \
|
$(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D \
|
||||||
--output-file=$@ $<
|
--output-file=$@ $(srcdir)/crypto/proposal/proposal_keywords_static.txt
|
||||||
|
|
||||||
if STATIC_PLUGIN_CONSTRUCTORS
|
if STATIC_PLUGIN_CONSTRUCTORS
|
||||||
BUILT_SOURCES += $(srcdir)/plugin_constructors.c
|
BUILT_SOURCES += $(srcdir)/plugin_constructors.c
|
||||||
|
|
|
@ -50,12 +50,12 @@ keywords.h: $(srcdir)/keywords.h.in
|
||||||
$(AM_V_GEN) \
|
$(AM_V_GEN) \
|
||||||
sed \
|
sed \
|
||||||
-e "s:\@GPERF_LEN_TYPE\@:$(GPERF_LEN_TYPE):" \
|
-e "s:\@GPERF_LEN_TYPE\@:$(GPERF_LEN_TYPE):" \
|
||||||
$< > $@
|
$(srcdir)/keywords.h.in > $@
|
||||||
|
|
||||||
keywords.c: $(srcdir)/keywords.txt keywords.h
|
keywords.c: $(srcdir)/keywords.txt keywords.h
|
||||||
$(AM_V_GEN) \
|
$(AM_V_GEN) \
|
||||||
$(GPERF) -m 10 -C -G -D -t \
|
$(GPERF) -m 10 -C -G -D -t \
|
||||||
--output-file=$@ $<
|
--output-file=$@ $(srcdir)/keywords.txt
|
||||||
|
|
||||||
install-exec-local :
|
install-exec-local :
|
||||||
test -e "$(DESTDIR)${sysconfdir}/ipsec.d" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d" || true
|
test -e "$(DESTDIR)${sysconfdir}/ipsec.d" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d" || true
|
||||||
|
|
|
@ -15,9 +15,9 @@ stroke_keywords.h: $(srcdir)/stroke_keywords.h.in
|
||||||
$(AM_V_GEN) \
|
$(AM_V_GEN) \
|
||||||
sed \
|
sed \
|
||||||
-e "s:\@GPERF_LEN_TYPE\@:$(GPERF_LEN_TYPE):" \
|
-e "s:\@GPERF_LEN_TYPE\@:$(GPERF_LEN_TYPE):" \
|
||||||
$< > $@
|
$(srcdir)/stroke_keywords.h.in > $@
|
||||||
|
|
||||||
stroke_keywords.c: $(srcdir)/stroke_keywords.txt 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 \
|
$(GPERF) -m 10 -D -C -G -t \
|
||||||
--output-file=$@ $<
|
--output-file=$@ $(srcdir)/stroke_keywords.txt
|
||||||
|
|
Loading…
Reference in New Issue