aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2010-04-03 01:14:52 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2010-04-03 01:14:52 +0000
commitb53e52602aeaf3aedd94d79f16a69ec58c72c66e (patch)
tree3a3aecfcfb2245b828689dc1fa54990ec1161bca /Makefile.in
parent96fbbc50ccd8fc9f62de335f843cda85eec2aec6 (diff)
downloadswig-b53e52602aeaf3aedd94d79f16a69ec58c72c66e.tar.gz
make maintainer-clean and make distclean fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11966 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in38
1 files changed, 18 insertions, 20 deletions
diff --git a/Makefile.in b/Makefile.in
index 1401ea9fc..7b74870b6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -302,9 +302,6 @@ clean-source:
@cd $(SOURCE) && $(MAKE) -s clean
@rm -f $(TARGET)
-clean-libfiles:
- @rm -f $(srcdir)/Lib/swigwarn.swg
-
clean-examples:
@$(MAKE) -k -s check-examples ACTION=clean
@@ -320,27 +317,15 @@ clean-%-test-suite:
clean-ccache:
test -z "$(ENABLE_CCACHE)" || (cd $(CCACHE) && $(MAKE) -s clean)
-clean-docs: clean-docs-main clean-docs-ccache
-
-clean-docs-main:
- @echo cleaning Docs
- @test -d $(DOCS) || exit 0; cd $(DOCS) && $(MAKE) clean
-
-clean-docs-ccache:
- @# Use distclean-docs-ccache, else a user requires the yodl tools to generate the docs after a clean
-
-maintainer-clean: clean-libfiles
- @cd $(SOURCE) && $(MAKE) maintainer-clean
-
#####################################################################
-# DISTCLEAN
+# DISTCLEAN - clean what configure built
#####################################################################
DISTCLEAN-DEAD = config.status config.log config.cache swig.spec Makefile mkmf.log libtool preinst-swig Lib/ocaml/swigp4.ml
-distclean: clean-docs distclean-objects distclean-test-suite distclean-examples distclean-dead distclean-ccache
+distclean-helper: distclean-test-suite distclean-examples distclean-dead distclean-ccache
-distclean-objects: distclean-source
+distclean: distclean-source distclean-helper
distclean-source:
@echo distcleaning Source
@@ -365,8 +350,21 @@ distclean-docs-ccache:
distclean-dead:
rm -f $(DISTCLEAN-DEAD)
-distclean-:
- rm -f Lib/ocaml/swigp4.ml
+#####################################################################
+# MAINTAINER CLEAN - clean what the maintainer builds and ships in
+# the distributed tarball - should not delete anything needed to run
+# ./configure && make
+#####################################################################
+
+maintainer-clean:
+ @echo maintainer-cleaning source
+ @cd $(SOURCE) && $(MAKE) -k -s maintainer-clean
+ @echo maintainer-cleaning docs
+ @cd $(DOCS) && $(MAKE) -k -s maintainer-clean
+ @echo maintainer-cleaning Lib files
+ @rm -f $(srcdir)/Lib/swigwarn.swg
+ @echo distcleaning
+ @$(MAKE) -k -s distclean-helper
#####################################################################
# Update the Lib/swigwarn.swg file