build: Use maintainer-clean for the ignore files removal

Instead of distclean.
This commit is contained in:
Emmanuele Bassi 2010-08-15 18:42:54 +01:00
parent c4913bfce9
commit 3142b15a9f
5 changed files with 11 additions and 8 deletions

View File

@ -7,15 +7,18 @@ $(srcdir)/.gitignore: Makefile.am
$(QUIET_GEN)( \ $(QUIET_GEN)( \
echo "*.o" ; \ echo "*.o" ; \
echo ".gitignore" ; \ echo ".gitignore" ; \
) > .gitignore ; \ ) > $(srcdir)/.gitignore ; \
for p in $(noinst_PROGRAMS); do \ for p in $(noinst_PROGRAMS); do \
echo "/$$p" >> .gitignore ; \ echo "/$$p" >> $(srcdir)/.gitignore ; \
done done
gitignore: $(srcdir)/.gitignore gitignore: $(srcdir)/.gitignore
.PHONY: gitignore gitignore-clean:
$(QUIET_RM)rm -f $(srcdir)/.gitignore
DISTCLEANFILES += $(srcdir)/.gitignore .PHONY: gitignore gitignore-clean
all: gitignore all: gitignore
maintainer-clean: gitignore-clean

View File

@ -41,6 +41,4 @@ layouts_stacking_SOURCES = layouts-stacking.c
layouts_stacking_diff_sized_actors_SOURCES = layouts-stacking-diff-sized-actors.c layouts_stacking_diff_sized_actors_SOURCES = layouts-stacking-diff-sized-actors.c
events_mouse_scroll_SOURCES = events-mouse-scroll.c events_mouse_scroll_SOURCES = events-mouse-scroll.c
DISTCLEANFILES =
-include $(top_srcdir)/build/autotools/Makefile.am.gitignore -include $(top_srcdir)/build/autotools/Makefile.am.gitignore

View File

@ -244,6 +244,8 @@ HTML_REPORTS = \
EXTRA_DIST = ADDING_NEW_TESTS test-launcher.sh.in run-tests.sh EXTRA_DIST = ADDING_NEW_TESTS test-launcher.sh.in run-tests.sh
DISTCLEANFILES = test-launcher.sh DISTCLEANFILES = test-launcher.sh
MAINTAINERCLEANFILES = .gitignore
# we override the clean-generic target to clean up the wrappers so # we override the clean-generic target to clean up the wrappers so
# we cannot use CLEANFILES # we cannot use CLEANFILES
clean-generic: clean-wrappers clean-generic: clean-wrappers

View File

@ -119,6 +119,8 @@ test_interactive_LDADD = $(CLUTTER_LIBS) $(common_ldadd)
EXTRA_DIST = wrapper.sh.in EXTRA_DIST = wrapper.sh.in
DISTCLEANFILES = wrapper.sh DISTCLEANFILES = wrapper.sh
MAINTAINERCLEANFILES = .gitignore
BUILT_SOURCES = wrappers BUILT_SOURCES = wrappers
clean-local: clean-wrappers clean-local: clean-wrappers

View File

@ -1,7 +1,5 @@
include $(top_srcdir)/build/autotools/Makefile.am.silent include $(top_srcdir)/build/autotools/Makefile.am.silent
DISTCLEANFILES =
noinst_PROGRAMS = \ noinst_PROGRAMS = \
test-text \ test-text \
test-picking \ test-picking \