1DOC_MODULE=$(PACKAGE)-$(VERSION) 2DOC_DIR=$(DESTDIR)$(datadir)/doc/$(DOC_MODULE) 3 4doc: html/index.html 5 6clean-local: 7 rm -rf html man latex *~ 8 9html/index.html: Doxyfile 10 doxygen Doxyfile 11 12install-data-local: html/index.html 13 $(mkinstalldirs) $(DOC_DIR)/html 14 $(mkinstalldirs) $(DESTDIR)$(mandir)/man3 15 -(cd html && for f in *.html *.png; do $(INSTALL) -m 644 "$$f" "$(DOC_DIR)/html/$$f"; done) 16 -(cd man/man3; for f in [!_]*.3; do $(INSTALL) -m 644 "$$f" "$(DESTDIR)$(mandir)/man3/$$f"; done) 17