Skip to content
Snippets Groups Projects
Makefile.am 835 B
# $Id$

all: doxygen-tag

doxygen_DEPS = $(shell: cat $(DEPDIR)/doxygen.Po)
doxygen_FILES = Doxyfile doxy-header.html doxy-footer.html dune-doxy.css

$(DEPDIR)/doxygen.Po:
	if [ ! -d $(DEPDIR) ]; then mkdir $(DEPDIR); fi
	echo > $@
	for d in $$(grep '^INPUT ' Doxyfile | cut -d '=' -f 2); do \
	  for p in $$(grep '^FILE_PATTERNS ' Doxyfile | cut -d '=' -f 2); \
	    do find "$$d" -name "$$p" -exec echo doxygen-tag: \{\} \; >> $@ ; \
	done; done

doxygen-tag: $(doxygen_FILES) $(doxygen_DEPS)
	doxygen
	touch doxygen-tag

WEBDIR = /var/www/dune/doxygen
WEBFILES = "html/*.html wildcard html/*.css"

web-install: doxygen-tag
	if [ ! -d $(WEBDIR) ]; then \
	  install -d -g web -m 775 $(WEBDIR); \
	fi
	install -g web -m 664 $(WEBFILES) $(WEBDIR)

include $(DEPDIR)/doxygen.Po

clean-local:
	rm -rf html latex $(DEPDIR) doxygen-tag	*~