Commit 8aeb080d authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Add a global make docs target

parent 86a0bf93
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3,3 +3,4 @@ build/cluster/*
build/sphere/*
build/trapping/*
doc/build/*
+6 −0
Original line number Diff line number Diff line
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)