X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=example-codegen%2Fcodegen.make;fp=codegen%2Fcodegen.make;h=add7355511a35f5e2e9ca30cd56be437c4e30c68;hp=747ed319d521f5946fc6a251555b8280168a45de;hb=d37ba346490f74d11dbd2e676d6968b2cb46af8c;hpb=630ececc28458d4442e8a128f215f2450f46bf95 diff --git a/codegen/codegen.make b/example-codegen/codegen.make similarity index 82% rename from codegen/codegen.make rename to example-codegen/codegen.make index 747ed31..add7355 100644 --- a/codegen/codegen.make +++ b/example-codegen/codegen.make @@ -6,11 +6,12 @@ include_HEADERS += $(foreach i, $(CMDGROUPS), $(i)_client.hxx $(i).hxx) -#IFILES=$(foreach i, $(CMDGROUPS), $(foreach j, $($(i)_GROUP), $(j))) +# not needed but nice to have +# IFILES=$(foreach i, $(CMDGROUPS), $(foreach j, $($(i)_GROUP), $(j))) -include $(foreach i, $(CMDGROUPS), libt2ngroup_$(i).P) -libt2ngroup_%.P : Makefile +libt2ngroup_%.P : Makefile.am echo $@ : $($*_GROUP) > libt2ngroup_$*.P %.libt2nstamp : libt2ngroup_%.P $(LIBT2N_CODEGEN) @@ -45,10 +46,7 @@ pkgconfig_DATA = $(CMDGROUPS:=.pc) -e 's,\@includedir\@,$(includedir),g' \ $< >$*.pc -LIBT2N_SUGGESTED_CLEANFILES = $(LIBT2N_CODEGEN_BUILT) $(LIBT2N_STAMPS) $(pkgconfig_DATA) - -# doesn't work -# CLEANFILES = $(LIBT2N_SUGGESTED_CLEANFILES) +CLEANFILES += $(LIBT2N_CODEGEN_BUILT) $(LIBT2N_STAMPS) $(pkgconfig_DATA) # didn't work (same problem as with _LTLIBRARIES [parsing by automake], # this time _OBJECTS was not correct) @@ -58,6 +56,7 @@ LIBT2N_SUGGESTED_CLEANFILES = $(LIBT2N_CODEGEN_BUILT) $(LIBT2N_STAMPS) $(pkgconf # we have got an old automake version (1.4-p5) which doesn't support nodist_ # => we use the dist-hook -# unfortunately dist-hook only works if directly visible for automake (=> not in this include) -#dist-hook: -# rm -vf $(foreach i, $(BUILT_SOURCES), $(distdir)/$(i)) +dist-hook: + rm -vf $(foreach i, $(LIBT2N_CODEGEN_BUILT), $(distdir)/$(i)) + +EXTRA_DIST += codegen.make