From 3b8b7372417b7bcf64ef2e5c0304815e8c3b416a Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 8 Jan 2005 19:58:01 +0000 Subject: More stamp magic. 2005-01-08 Christian Persch * embed/Makefile.am: * lib/Makefile.am: * lib/egg/Makefile.am: * src/Makefile.am: More stamp magic. --- lib/egg/Makefile.am | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'lib/egg/Makefile.am') diff --git a/lib/egg/Makefile.am b/lib/egg/Makefile.am index 23672cdcc..83cb773a3 100644 --- a/lib/egg/Makefile.am +++ b/lib/egg/Makefile.am @@ -44,7 +44,9 @@ BUILT_SOURCES = \ eggtypebuiltins.h stamp_files = \ + stamp-eggmarshalers.c \ stamp-eggmarshalers.h \ + stamp-eggtypebuiltins.c \ stamp-eggtypebuiltins.h eggmarshalers.h: stamp-eggmarshalers.h @@ -53,10 +55,15 @@ stamp-eggmarshalers.h: eggmarshalers.list $(GLIB_GENMARSHAL) --prefix=_egg_marshal $(srcdir)/eggmarshalers.list --header > eggmarshalers.h \ && echo timestamp > $(@F) -eggmarshalers.c: eggmarshalers.list - $(GLIB_GENMARSHAL) --prefix=_egg_marshal $(srcdir)/eggmarshalers.list --header --body > eggmarshalers.c +eggmarshalers.c: stamp-eggmarshalers.c + @true +stamp-eggmarshalers.c: eggmarshalers.list + $(GLIB_GENMARSHAL) --prefix=_egg_marshal $(srcdir)/eggmarshalers.list --header --body > eggmarshalers.c \ + && echo timestamp > $(@F) -eggtypebuiltins.c: $(EGGHEADERS) +eggtypebuiltins.c: stamp-eggtypebuiltins.c + @true +stamp-eggtypebuiltins.c: $(EGGHEADERS) ( cd $(srcdir) && $(GLIB_MKENUMS) \ --fhead "#include \"eggtypebuiltins.h\"\n\n" \ --fprod "\n/* enumerations from \"@filename@\" */" \ @@ -70,8 +77,9 @@ eggtypebuiltins.c: $(EGGHEADERS) --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \ --vtail " return type;\n}\n\n" \ $(^F) ) > xgen-$(@F) \ - && ( cmp -s xgen-$(@F) $(@F) || cp xgen-$(@F) $(@F) ) \ - && rm -f xgen-$(@F) + && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \ + && rm -f xgen-$(@F) \ + && echo timestamp > $(@F) eggtypebuiltins.h: stamp-eggtypebuiltins.h @true -- cgit v1.2.3