fix the Makefile(s)

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2015-03-10 16:07:00 +01:00
parent f4579d9660
commit c9ce43313f
2 changed files with 5 additions and 6 deletions

View File

@ -35,18 +35,15 @@ clean:
-find . -name '*.pygc' -exec rm -f {} \; -find . -name '*.pygc' -exec rm -f {} \;
-find . -name '*.class' -exec rm -f {} \; -find . -name '*.class' -exec rm -f {} \;
-find . -name '.cache*' -exec rm -f {} \; -find . -name '.cache*' -exec rm -f {} \;
# Care with that. We have html in subdirs we want to keep.
-find ./docs -name '*.html' -exec rm -f {} \;
-rm -f manpage.links manpage.refs -rm -f manpage.links manpage.refs
-find . -name auth -exec rm -vf {}/password {}/username \; -find . -name auth -exec rm -vf {}/password {}/username \;
@$(MAKE) -C docs clean @$(MAKE) -C clean
man: man:
@$(MAKE) -C docs man @$(MAKE) -C man
doc: doc:
@$(MAKE) -C docs @$(MAKE) -C docs
$(RST2HTML) Changelog.rst Changelog.html
targz: ../$(TARGZ) targz: ../$(TARGZ)
../$(TARGZ): ../$(TARGZ):

View File

@ -32,7 +32,9 @@ websitedoc:
clean: clean:
$(RM) -f $(HTML_TARGETS) $(RM) -f $(HTML_TARGETS)
$(RM) -f offlineimap.1 ../offlineimap.1 $(RM) -f offlineimap.1
$(RM) -f offlineimap.7
$(RM) -rf html/* $(RM) -rf html/*
-find ./docs -name '*.html' -exec rm -f {} \;
.PHONY: clean doc .PHONY: clean doc