DX_CONFIG_FILE = "$(top_srcdir)/orxodox" DX_CONF_DIR = "$(top_srcdir)/doc/doxyconf" doc: @echo "Generating doxygen Documentation"; \ if test ! -e $(DX_CONFIG_FILE); then \ make doc-config; \ fi doxygen $(DX_CONFIG_FILE) doc-config: @echo "Generationg doxygen configuration File." ; \ if test -e "$(top_srcdir)/orxodox"; then \ echo "deleting existing Configuration File" ; \ rm $(top_srcdir)/orxodox ; \ fi ; \ touch $(DX_CONFIG_FILE) ; \ $(DX_CONF_DIR)/project >> $(DX_CONFIG_FILE); \ echo "PROJECT_NAME = \"$(PACKAGE_NAME)\"" >> $(DX_CONFIG_FILE); \ echo "PROJECT_NUMBER = \"$(PACKAGE_VERSION)\"" >> $(DX_CONFIG_FILE); \ echo "OUTPUT_DIRECTORY = \"$(top_srcdir)/doc/\"" >> $(DX_CONFIG_FILE); \ echo " " >> $(DX_CONFIG_FILE); \ \ $(DX_CONF_DIR)/build >> $(DX_CONFIG_FILE); \ \ $(DX_CONF_DIR)/progress >> $(DX_CONFIG_FILE); \ if test $(DEBUG) -ge 2 ; then \ echo "QUIET = \"NO\"" >> $(DX_CONFIG_FILE); \ else \ echo "QUIET = \"YES\"" >> $(DX_CONFIG_FILE); \ fi ;\ \ $(DX_CONF_DIR)/input >> $(DX_CONFIG_FILE); \ echo "INPUT = $(DOXYGEN_INPUT)" >> $(DX_CONFIG_FILE); \ \ $(DX_CONF_DIR)/preprocessor >> $(DX_CONFIG_FILE); \ echo "INCLUDE_PATH = \"$(top_srcdir)\"" >> $(DX_CONFIG_FILE); \ echo "PREDEFINED = \"HAVE_CONFIG_H= \"" >> $(DX_CONFIG_FILE); \ \ $(DX_CONF_DIR)/confopts >> $(DX_CONFIG_FILE) doc-delete: @echo "Deleting doxygen Documentation" ; \ rm -rf $(top_srcdir)/doc/html ; \ rm -rf $(top_srcdir)/doc/latex .PHONY: doc doc-config doc-delete # Local Variables: # mode: makefile # End: