diff --git a/.gitignore b/.gitignore index ecb83700cb4f01a8442484d33b4b02010c8592a6..db0984b6c6b0f612e3c708ac3d67bd154628173a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ build/cluster/* build/sphere/* build/trapping/* doc/build/* + diff --git a/src/Makefile b/src/Makefile index eb1078181acfc8ad9f3f5c022b821e11e6eb3e0f..544534f8a4ef39c6e646749269d7ad3b732cc37c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,9 +1,13 @@ SUBDIRS := cluster sphere trapping SRCDIR=$(PWD) BUILDDIR=$(SRCDIR)/../build +DOCSDIR=$(SRCDIR)/../doc all: $(SUBDIRS) +docs: + cd $(DOCSDIR)/src; doxygen config.dox + $(SUBDIRS): $(MAKE) -C $@ @@ -16,5 +20,7 @@ wipe: rm -f $(BUILDDIR)/cluster/* rm -f $(BUILDDIR)/sphere/* rm -f $(BUILDDIR)/trapping/* + if [ -d $(DOCSDIR)/build/html ]; then rm -r $(DOCSDIR)/build/html; fi + if [ -d $(DOCSDIR)/build/latex ]; then rm -r $(DOCSDIR)/build/latex; fi .PHONY: all $(SUBDIRS)