Fix the build issue with gperf

GPerf seems not allowing the empty lines though, current recipes are supposed to drop them.
but seems not working on some env.
So taking the proper way to do that instead of incompatible things against platforms.
This commit is contained in:
Akira TAGOH 2018-08-01 08:10:35 +00:00
parent 1451f829e7
commit a1efb5ea8c
1 changed files with 1 additions and 1 deletions

View File

@ -111,10 +111,10 @@ fcobjshash.gperf: Makefile stamp-fcobjshash.gperf
stamp-fcobjshash.gperf: fcobjshash.gperf.h fcobjs.h
$(AM_V_GEN) $(CPP) -I$(top_srcdir) $(CPPFLAGS) $< | \
$(SED) 's/^ *//;s/ *, */,/' | \
$(GREP) '^[^#]' | \
awk ' \
/CUT_OUT_BEGIN/ { no_write=1; next; }; \
/CUT_OUT_END/ { no_write=0; next; }; \
/^$$/||/^#/ { next; }; \
{ if (!no_write) print; next; }; \
' - > $@.tmp && \
mv -f $@.tmp fcobjshash.gperf && touch $@ || ( $(RM) $@.tmp && false )