Permalink
Browse files

make the clean tasks of makefile a bit more complete

Signed-off-by: Jordan Wilberding <diginux@gmail.com>
  • Loading branch information...
1 parent 5ad6c22 commit 1938a36d35333ccd7aa02761bcbbbfd214b03841 @ericbmerritt committed with jwilberding Jun 21, 2012
Showing with 17 additions and 3 deletions.
  1. +4 −0 Makefile
  2. +2 −2 build-support/core-build.mkf
  3. +11 −1 build-support/doc.mkf
View
@@ -29,3 +29,7 @@ BUILD_SUPPORT=$(CURDIR)/build-support
include $(BUILD_SUPPORT)/core-build.mkf
include $(BUILD_SUPPORT)/doc.mkf
+
+clean: jxa-clean doc-clean
+
+distclean: jxa-distclean doc-distclean
@@ -83,14 +83,14 @@ get-deps:
shell: build $(TESTBEAMS)
$(ERL) $(ERLFLAGS) -s joxa main -s init stop
-clean:
+jxa-clean:
$(REBAR) skip_deps=true clean
rm -rf $(APPDIR)/joxa
rm -rf $(APPDIR)/.bootstrap
rm -rf $(APPDIR)/_build
rm -rf $(APPDIR)/erl_crash.dump
-distclean: clean
+jxa-distclean: jxa-clean
rm -rf $(APPDIR)/deps
test: build proper eunit cucumber
View
@@ -30,7 +30,7 @@ help:
@echo " devhelp to make HTML files and a Devhelp project"
@echo " epub to make an epub"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
- @echo " latexpdf to make LaTeX files and run them through pdflatex"
+ @echo " latexpdf tno make LaTeX files and run them through pdflatex"
@echo " text to make text files"
@echo " man to make manual pages"
@echo " texinfo to make Texinfo files"
@@ -116,3 +116,13 @@ linkcheck:
@echo "Link check complete; look for any errors in the above output " \
"or in $(DOCBUILDDIR)/linkcheck/output.txt."
+doc-clean:
+ rm -rf $(DOCBUILDDIR)/_site
+ rm -rf $(DOCBUILDDIR)/html
+ rm -rf $(DOCBUILDDIR)/latex
+ rm -rf $(DOCBUILDDIR)/man
+ rm -rf $(DOCBUILDDIR)/texinfo
+ rm -rf $(DOCBUILDDIR)/text
+ rm -rf $(DOCBUILDDIR)/doctrees
+
+doc-distclean: doc-clean

0 comments on commit 1938a36

Please sign in to comment.