diff options
-rw-r--r-- | embed/Makefile.am | 13 | ||||
-rw-r--r-- | lib/Makefile.am | 21 | ||||
-rw-r--r-- | lib/egg/Makefile.am | 23 | ||||
-rw-r--r-- | src/Makefile.am | 12 |
4 files changed, 52 insertions, 17 deletions
diff --git a/embed/Makefile.am b/embed/Makefile.am index 03a990dd1..b2b32df9b 100644 --- a/embed/Makefile.am +++ b/embed/Makefile.am @@ -92,6 +92,10 @@ BUILT_SOURCES = \ CLEAN_FILES = $(BUILT_SOURCES) DISTCLEAN_FILES = $(BUILT_SOURCES) +MAINTAINERCLEANFILES = $(stamp_files) $(BUILT_SOURCES) + +stamp_files = \ + stamp-ephy-embed-type-builtins.h ephy-embed-type-builtins.c: $(TYPES_H_FILES) ( cd $(srcdir) && $(GLIB_MKENUMS) \ @@ -110,7 +114,9 @@ ephy-embed-type-builtins.c: $(TYPES_H_FILES) && ( cmp -s xgen-$(@F) $(@F) || cp xgen-$(@F) $(@F) ) \ && rm -f xgen-$(@F) -ephy-embed-type-builtins.h: $(TYPES_H_FILES) +ephy-embed-type-builtins.h: stamp-ephy-embed-type-builtins.h + @true +stamp-ephy-embed-type-builtins.h: $(TYPES_H_FILES) ( cd $(srcdir) && $(GLIB_MKENUMS) \ --fhead "#ifndef EPHY_EMBED_TYPE_BUILTINS_H\n" \ --fhead "#define EPHY_EMBED_TYPE_BUILTINS_H 1\n\n" \ @@ -122,5 +128,6 @@ ephy-embed-type-builtins.h: $(TYPES_H_FILES) --eprod "#define EPHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \ --eprod "GType @enum_name@_get_type (void);\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) diff --git a/lib/Makefile.am b/lib/Makefile.am index 55312a398..6570ecf82 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -81,12 +81,20 @@ BUILT_SOURCES = \ CLEAN_FILES = $(BUILT_SOURCES) DISTCLEAN_FILES = $(BUILT_SOURCES) +MAINTAINERCLEANFILES = $(stamp_files) $(BUILT_SOURCES) + +stamp_files = \ + stamp-ephy-lib-type-builtins.h \ + stamp-ephy-marshal.h ephy-marshal.c: ephy-marshal.list $(GLIB_GENMARSHAL) --prefix=ephy_marshal $(srcdir)/ephy-marshal.list --header --body > ephy-marshal.c -ephy-marshal.h: ephy-marshal.list - $(GLIB_GENMARSHAL) --prefix=ephy_marshal $(srcdir)/ephy-marshal.list --header > ephy-marshal.h +ephy-marshal.h: stamp-ephy-marshal.h + @true +stamp-ephy-marshal.h: ephy-marshal.list + $(GLIB_GENMARSHAL) --prefix=ephy_marshal $(srcdir)/ephy-marshal.list --header > ephy-marshal.h \ + && echo timestamp > $(@F) ephy-lib-type-builtins.c: $(TYPES_H_FILES) ( cd $(srcdir) && $(GLIB_MKENUMS) \ @@ -105,7 +113,9 @@ ephy-lib-type-builtins.c: $(TYPES_H_FILES) && ( cmp -s xgen-$(@F) $(@F) || cp xgen-$(@F) $(@F) ) \ && rm -f xgen-$(@F) -ephy-lib-type-builtins.h: $(TYPES_H_FILES) +ephy-lib-type-builtins.h: stamp-ephy-lib-type-builtins.h + @true +stamp-ephy-lib-type-builtins.h: $(TYPES_H_FILES) ( cd $(srcdir) && $(GLIB_MKENUMS) \ --fhead "#ifndef EPHY_LIB_TYPE_BUILTINS_H\n" \ --fhead "#define EPHY_LIB_TYPE_BUILTINS_H 1\n\n" \ @@ -117,8 +127,9 @@ ephy-lib-type-builtins.h: $(TYPES_H_FILES) --eprod "#define EPHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \ --eprod "GType @enum_name@_get_type (void);\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) EXTRA_DIST = \ ephy-marshal.list diff --git a/lib/egg/Makefile.am b/lib/egg/Makefile.am index 97173c04d..23672cdcc 100644 --- a/lib/egg/Makefile.am +++ b/lib/egg/Makefile.am @@ -43,8 +43,15 @@ BUILT_SOURCES = \ eggtypebuiltins.c \ eggtypebuiltins.h -eggmarshalers.h: eggmarshalers.list - $(GLIB_GENMARSHAL) --prefix=_egg_marshal $(srcdir)/eggmarshalers.list --header > eggmarshalers.h +stamp_files = \ + stamp-eggmarshalers.h \ + stamp-eggtypebuiltins.h + +eggmarshalers.h: stamp-eggmarshalers.h + @true +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 @@ -66,7 +73,9 @@ eggtypebuiltins.c: $(EGGHEADERS) && ( cmp -s xgen-$(@F) $(@F) || cp xgen-$(@F) $(@F) ) \ && rm -f xgen-$(@F) -eggtypebuiltins.h: $(EGGHEADERS) +eggtypebuiltins.h: stamp-eggtypebuiltins.h + @true +stamp-eggtypebuiltins.h: $(EGGHEADERS) ( cd $(srcdir) && $(GLIB_MKENUMS) \ --fhead "#ifndef __EGGTYPEBUILTINS_H__\n" \ --fhead "#define __EGGTYPEBUILTINS_H__ 1\n\n" \ @@ -78,10 +87,11 @@ eggtypebuiltins.h: $(EGGHEADERS) --eprod "#define EGG_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \ --eprod "GType @enum_name@_get_type (void);\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) -EXTRA_DIST= \ +EXTRA_DIST = \ eggmarshalers.list EGGFILES=$(EGGSOURCES) $(EGGHEADERS) @@ -92,3 +102,4 @@ regenerate-built-sources: CLEANFILES = $(BUILT_SOURCES) DISTCLEAN_FILES = $(BUILT_SOURCES) +MAINTAINERCLEANFILES = $(stamp_files) $(BUILT_SOURCES) diff --git a/src/Makefile.am b/src/Makefile.am index fa9d5f765..b44c223ae 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -150,6 +150,9 @@ TYPES_SOURCE = \ ephy-type-builtins.c \ ephy-type-builtins.h +stamp_files = \ + stamp-ephy-type-builtins.h + ephy-type-builtins.c: $(INST_H_FILES) $(NOINST_H_FILES) ( cd $(srcdir) && $(GLIB_MKENUMS) \ --fhead "#include \"ephy-type-builtins.h\"\n\n" \ @@ -167,7 +170,9 @@ ephy-type-builtins.c: $(INST_H_FILES) $(NOINST_H_FILES) && ( cmp -s xgen-$(@F) $(@F) || cp xgen-$(@F) $(@F) ) \ && rm -f xgen-$(@F) -ephy-type-builtins.h: $(INST_H_FILES) $(NOINST_H_FILES) +ephy-type-builtins.h: stamp-ephy-type-builtins.h + @true +stamp-ephy-type-builtins.h: $(INST_H_FILES) $(NOINST_H_FILES) ( cd $(srcdir) && $(GLIB_MKENUMS) \ --fhead "#ifndef EPHY_TYPE_BUILTINS_H\n" \ --fhead "#define EPHY_TYPE_BUILTINS_H 1\n\n" \ @@ -179,8 +184,9 @@ ephy-type-builtins.h: $(INST_H_FILES) $(NOINST_H_FILES) --eprod "#define EPHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \ --eprod "GType @enum_name@_get_type (void);\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) CLEANFILES = $(BUILT_SOURCES) DISTCLEANFILES = $(BUILT_SOURCES) |