X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=examples-codegen%2Fexample2%2Fcodegen.make;h=76e3f936ac6f82d5378bd1d19e6494d3eb9ac449;hp=5c84e31cd114ff5fec8c6f717ab0f559962aa55d;hb=58f452c4278be2568cb663f1ec47b0cca95c46f6;hpb=872dc047a9a0f765543ff5eb5ab1fc529cc74992 diff --git a/examples-codegen/example2/codegen.make b/examples-codegen/example2/codegen.make index 5c84e31..76e3f93 100644 --- a/examples-codegen/example2/codegen.make +++ b/examples-codegen/example2/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 $@ + libt2n-gccxml.sh $(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)