From 04ddfe0a6faf510f8439a24909f05922c013701f Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Sun, 17 Aug 2014 20:03:09 +0200 Subject: [PATCH] Don't remove meta/meta-version.h during make clean meta/meta-version.h is generated by configure, so it should be removed with make distclean, not make clean. This is the heuristic described in https://www.gnu.org/software/automake/manual/html_node/Clean.html Cleaning it in make clean means that configure; make clean; make won't work properly as meta/meta-version.h will be removed and not regenerated. https://bugzilla.gnome.org/show_bug.cgi?id=734960 --- src/Makefile.am | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 8a291e1f1..a6606eeb4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -372,10 +372,12 @@ dbus_idle_built_sources = meta-dbus-idle-monitor.c meta-dbus-idle-monitor.h CLEANFILES = \ $(mutter_built_sources) \ - $(libmutterinclude_built_headers) \ $(typelib_DATA) \ $(gir_DATA) +DISTCLEANFILES = \ + $(libmutterinclude_built_headers) + pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libmutter.pc @@ -388,7 +390,10 @@ EXTRA_DIST = \ org.gnome.Mutter.DisplayConfig.xml \ org.gnome.Mutter.IdleMonitor.xml -BUILT_SOURCES = $(mutter_built_sources) +BUILT_SOURCES = \ + $(mutter_built_sources) \ + $(libmutterinclude_built_headers) + MUTTER_STAMP_FILES = stamp-mutter-enum-types.h CLEANFILES += $(MUTTER_STAMP_FILES)