2010-05-20 02:08:27 +05:30
|
|
|
-include ../config.mk
|
|
|
|
|
2010-01-23 07:07:19 +05:30
|
|
|
# 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
|
2011-02-05 17:04:45 +05:30
|
|
|
all: $(FILES) doxyfiletrans doxygendocs
|
2010-01-23 07:07:19 +05:30
|
|
|
|
|
|
|
$(FILES): %.$(FORMAT): %.dot
|
|
|
|
dot -T$(FORMAT) $< -o images/$@
|
|
|
|
|
2011-02-05 17:04:45 +05:30
|
|
|
doxyfiletrans: $(DOXYF).in
|
|
|
|
sed -e "s|@@PROJECT_NUMBER@@|$$(date +%Y%m%d)|" $< > $(DOXYF)
|
|
|
|
|
|
|
|
doxygendocs: $(FILES) doxyfiletrans
|
2010-01-23 07:07:19 +05:30
|
|
|
doxygen $(DOXYF)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
-rm -f images/*.$(FORMAT)
|
|
|
|
-rm -rf ../api
|
2011-02-05 17:04:45 +05:30
|
|
|
-rm -f $(DOXYF)
|
2010-05-20 02:08:27 +05:30
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
install -d $(DESTDIR)$(SHAREDIR)/doc/xbps
|
|
|
|
cp -r ../api $(DESTDIR)$(SHAREDIR)/doc/xbps
|