From e5f1eac718ae79b43f98b8427fdf880049f3e101 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 1 May 2012 13:14:04 +0100 Subject: [PATCH 11/15] Add `make clean-for-new-branch` --- Makefile.am | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile.am b/Makefile.am index 1948f35..3e5e58a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -52,3 +52,16 @@ CHANGELOG_RANGE = telepathy-glib-0.14.0.. CHECK_FOR_UNRELEASED = $(srcdir)/NEWS $(wildcard $(srcdir)/telepathy-glib/*.[ch]) include tools/telepathy.am + +# Don't just "make distclean", because that would result in forgetting +# the options we used when we ran configure. +# +# However, we do want to distclean in docs (to get rid of xml, html etc.) +# and in telepathy-glib (to get rid of any stray files in _gen which might +# not exist on the new branch). +clean-for-new-branch: + $(MAKE) clean + $(MAKE) -C docs distclean + $(MAKE) -C telepathy-glib distclean + $(SHELL) ./config.status --recheck + $(SHELL) ./config.status -- 1.7.10