xbps/doc/Makefile
Juan RP b70eb0f4c5 Transform PROJECT_NUMBER in the doxyfile.
--HG--
rename : doc/xbps_api_doxyfile => doc/xbps_api_doxyfile.in
2011-02-05 12:34:45 +01:00

35 lines
798 B
Makefile

-include ../config.mk
# Makefile to build the libxbps API documentation.
#
DOXYF ?= xbps_api_doxyfile
FORMAT ?= png
FILES = xbps_transaction_dictionary.$(FORMAT)
FILES += xbps_regpkgdb_dictionary.$(FORMAT)
FILES += xbps_pkg_props_dictionary.$(FORMAT)
FILES += xbps_pkg_files_dictionary.$(FORMAT)
FILES += xbps_binary_pkg_content.$(FORMAT)
.PHONY: all
all: $(FILES) doxyfiletrans doxygendocs
$(FILES): %.$(FORMAT): %.dot
dot -T$(FORMAT) $< -o images/$@
doxyfiletrans: $(DOXYF).in
sed -e "s|@@PROJECT_NUMBER@@|$$(date +%Y%m%d)|" $< > $(DOXYF)
doxygendocs: $(FILES) doxyfiletrans
doxygen $(DOXYF)
.PHONY: clean
clean:
-rm -f images/*.$(FORMAT)
-rm -rf ../api
-rm -f $(DOXYF)
.PHONY: install
install:
install -d $(DESTDIR)$(SHAREDIR)/doc/xbps
cp -r ../api $(DESTDIR)$(SHAREDIR)/doc/xbps