X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=examples-codegen%2Fexample2%2Fcodegen.make;h=6d7f069ffef8b4382a67742c1332a052da15cd40;hp=71179b47185a725f07779d5689e6212213bd52ac;hb=c99918d6ed784eec9576d8641c62dd3153089414;hpb=3a86fe9bda6ca91f8378fdf4c27adad408b4b0e5 diff --git a/examples-codegen/example2/codegen.make b/examples-codegen/example2/codegen.make index 71179b4..6d7f069 100644 --- a/examples-codegen/example2/codegen.make +++ b/examples-codegen/example2/codegen.make @@ -4,7 +4,7 @@ # gnu make (functions for transforming text) # sed is available -include_HEADERS += $(foreach i, $(CMDGROUPS), $(i)_client.hxx $(i).hxx) +include_HEADERS = $(foreach i, $(CMDGROUPS), $(i)_client.hxx $(i).hxx) # not needed but nice to have # IFILES=$(foreach i, $(CMDGROUPS), $(foreach j, $($(i)_GROUP), $(j))) @@ -30,7 +30,7 @@ libt2ngroup_%.P : Makefile.am LIBT2N_CODEGEN_BUILT = $(foreach i, $(CMDGROUPS), $(foreach j, _common.hxx _common.cpp _client.hxx _client.cpp _server.hxx _server.cpp, $(i)$(j)) ) # using BUILT_SOURCES is a bit problematic (see also automake manual) -BUILT_SOURCES += $(LIBT2N_CODEGEN_BUILT) +BUILT_SOURCES = $(LIBT2N_CODEGEN_BUILT) LIBT2N_STAMPS=$(CMDGROUPS:=.libt2nstamp) $(BUILT_SOURCES) : $(LIBT2N_STAMPS) @@ -50,8 +50,8 @@ pkgconfig_DATA = $(CMDGROUPS:=.pc) -e 's,\@VERSION\@,$(VERSION),g' \ $< >$*.pc -CLEANFILES += $(LIBT2N_CODEGEN_BUILT) $(LIBT2N_STAMPS) $(pkgconfig_DATA) -DISTCLEANFILES += $(foreach i, $(CMDGROUPS), libt2ngroup_$(i).P) +CLEANFILES = $(LIBT2N_CODEGEN_BUILT) $(LIBT2N_STAMPS) $(pkgconfig_DATA) +DISTCLEANFILES = $(foreach i, $(CMDGROUPS), libt2ngroup_$(i).P) # didn't work (same problem as with _LTLIBRARIES [parsing by automake], # this time _OBJECTS was not correct) @@ -64,4 +64,4 @@ DISTCLEANFILES += $(foreach i, $(CMDGROUPS), libt2ngroup_$(i).P) dist-hook: $(LIBT2N_CODEGEN_BUILT) rm -vf $(foreach i, $(LIBT2N_CODEGEN_BUILT), $(distdir)/$(i)) -EXTRA_DIST += codegen.make +EXTRA_DIST = codegen.make