Skip to content

Commit

Permalink
Fix the clean rule to never remove generated doc files
Browse files Browse the repository at this point in the history
... this is now done by new distclean rule, which will also
purge autoconf files.
  • Loading branch information
jonas committed Sep 23, 2007
1 parent 12e8c2b commit 4b551e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
aclocal.m4
autom4te.cache
config.h
config.h.in
Expand Down
11 changes: 7 additions & 4 deletions Makefile
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4b551e7

Please sign in to comment.