Skip to content

Commit

Permalink
make the clean tasks of makefile a bit more complete
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
  • Loading branch information
ericbmerritt authored and jwilberding committed Jun 25, 2012
1 parent 5ad6c22 commit 1938a36
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -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
4 changes: 2 additions & 2 deletions build-support/core-build.mkf
Expand Up @@ -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
Expand Down
12 changes: 11 additions & 1 deletion build-support/doc.mkf
Expand Up @@ -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"
Expand Down Expand Up @@ -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.