Commits

Sebastian Freundt  committed 7b8fb75

chore, populate version.mk VERSION string in test suite also

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>

  • Participants
  • Parent commits 790b7b8

Comments (0)

Files changed (1)

File test/Makefile.am

 # Help the Developers and yourself. Just use the C locale and settings
 # for the compilation. They can still be overriden by make LANG=<whatever>
 # but that is general a not very good idea
+include $(top_builddir)/version.mk
+
 LANG = C
 LC_ALL = C
 
 ## ggo rule
 %.c %.h: %.ggo
 	$(AM_V_GEN) gengetopt -F $* -i $<
+	@sed -e 's,config.h,version.h,g' \
+	     -e 's,_PARSER_VERSION VERSION,_PARSER_VERSION "$(VERSION)",g' \
+	     $*.h > $*.h-t \
+	&& mv $*.h-t $*.h
 
 clean-local:
 	-rm -rf *.tmpd