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); \ \ $(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) .PHONY: doc doc-config # Local Variables: # mode: makefile # End: