From 4b551e77e010b7a4126e6ce863463a10f94142b1 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 23 Sep 2007 23:05:40 +0200 Subject: [PATCH] Fix the clean rule to never remove generated doc files ... this is now done by new distclean rule, which will also purge autoconf files. --- .gitignore | 1 + Makefile | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index a49c82b..5a360a8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +aclocal.m4 autom4te.cache config.h config.h.in diff --git a/Makefile b/Makefile index 5bf60e3..6f23166 100644 --- a/Makefile +++ b/Makefile @@ -81,9 +81,12 @@ install-doc-html: doc-html install-doc: install-doc-man install-doc-html clean: - rm -rf manual.html-chunked $(TARNAME) - rm -f $(PROGS) $(ALLDOC) core *.o *.xml *.toc - rm -f *.spec tig-*.tar.gz tig-*.tar.gz.md5 + $(RM) -r $(TARNAME) *.spec tig-*.tar.gz tig-*.tar.gz.md5 + $(RM) $(PROGS) core *.o *.xml + +distclean: clean + $(RM) -r manual.html-chunked *.toc $(ALLDOC) + $(RM) -r autom4te.cache aclocal.m4 config.{h,log,make,status} config.h.in configure spell-check: aspell --lang=en --check tig.1.txt tigrc.5.txt manual.txt @@ -112,7 +115,7 @@ configure: configure.ac acinclude.m4 release-doc: git checkout release && \ git merge master && \ - $(MAKE) clean doc-man doc-html && \ + $(MAKE) distclean doc-man doc-html && \ git add -f $(MANDOC) $(HTMLDOC) && \ git commit -m "Sync docs" && \ git checkout master -- 2.11.0