X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=examples-codegen%2Fexample1%2Fcodegen.make;h=71179b47185a725f07779d5689e6212213bd52ac;hp=d7c991bfa92b59757f5506582c633ea6362b5646;hb=3a86fe9bda6ca91f8378fdf4c27adad408b4b0e5;hpb=208db683069afb57aeb0ef0e6897c014b870bb6f diff --git a/examples-codegen/example1/codegen.make b/examples-codegen/example1/codegen.make index d7c991b..71179b4 100644 --- a/examples-codegen/example1/codegen.make +++ b/examples-codegen/example1/codegen.make @@ -22,8 +22,10 @@ libt2ngroup_%.P : Makefile.am echo '#include "$*.hxx"' >> $*_common.hxx; # todo use tmp file for xml file for i in $($*_GROUP); do \ - gccxml $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(srcdir)/$${i} -fxml=$${i%*.cpp}.xml; \ - done && $(LIBT2N_CODEGEN) $* $($*_GROUP:.cpp=.xml) && touch $@ + gccxml $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(srcdir)/$${i} -fxml=$${i%*.cpp}.xml; \ + done && $(LIBT2N_CODEGEN) $* $($*_GROUP:.cpp=.xml) && for i in $($*_GROUP); do \ + rm $${i%*.cpp}.xml; \ + done && touch $@ LIBT2N_CODEGEN_BUILT = $(foreach i, $(CMDGROUPS), $(foreach j, _common.hxx _common.cpp _client.hxx _client.cpp _server.hxx _server.cpp, $(i)$(j)) ) @@ -49,6 +51,7 @@ pkgconfig_DATA = $(CMDGROUPS:=.pc) $< >$*.pc 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)