Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3219 in orxonox.OLD for orxonox/trunk/Makefile.in


Ignore:
Timestamp:
Dec 19, 2004, 4:31:17 PM (21 years ago)
Author:
bensch
Message:

orxonox/trunk: checking for doxygen-executable. doxygen will only be made, if doxygen exists on the computer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/Makefile.in

    r3218 r3219  
    9292DEFS = @DEFS@
    9393DEPDIR = @DEPDIR@
     94DOXYGEN = @DOXYGEN@
     95DOXYGEN_FALSE = @DOXYGEN_FALSE@
     96DOXYGEN_TRUE = @DOXYGEN_TRUE@
    9497ECHO_C = @ECHO_C@
    9598ECHO_N = @ECHO_N@
     
    178181             doc/doxyconf/project
    179182
    180 DOXYGEN_INPUT = "src src/gui src/importer"
    181 DOXYGEN_EXCLUDE =
    182 DOXYGEN_EXAMPLE_PATH =
    183 DOXYGEN_SEARCHENGINE = YES
    184 DX_CONFIG_FILE = "$(top_srcdir)/orxodox"
    185 DX_CONF_DIR = "$(top_srcdir)/doc/doxyconf"
     183@DOXYGEN_TRUE@DOXYGEN_INPUT = "src src/gui src/importer"
     184@DOXYGEN_TRUE@DOXYGEN_EXCLUDE =
     185@DOXYGEN_TRUE@DOXYGEN_EXAMPLE_PATH =
     186@DOXYGEN_TRUE@DOXYGEN_SEARCHENGINE = YES
     187@DOXYGEN_TRUE@DX_CONFIG_FILE = "$(top_srcdir)/orxodox"
     188@DOXYGEN_TRUE@DX_CONF_DIR = "$(top_srcdir)/doc/doxyconf"
    186189all: config.h
    187190        $(MAKE) $(AM_MAKEFLAGS) all-recursive
     
    597600
    598601
    599 doc:
    600         if test ! -e $(DX_CONFIG_FILE); then \
    601          make doc-config; \
    602         fi
    603         @echo "Generating doxygen Documentation"; \
    604         doxygen $(DX_CONFIG_FILE)
    605 
    606 doc-config:
    607         @echo "Generationg doxygen configuration File." ; \
    608         if test -e  "$(top_srcdir)/orxodox"; then \
    609           echo "deleting existing Configuration File" ; \
    610           rm $(top_srcdir)/orxodox ; \
    611         fi ; \
    612         touch $(DX_CONFIG_FILE) ; \
    613         $(DX_CONF_DIR)/project                                          >> $(DX_CONFIG_FILE); \
    614         echo "PROJECT_NAME              = \"$(PACKAGE_NAME)\""          >> $(DX_CONFIG_FILE); \
    615         echo "PROJECT_NUMBER            = \"$(PACKAGE_VERSION)\""       >> $(DX_CONFIG_FILE); \
    616         echo "OUTPUT_DIRECTORY          = \"$(top_srcdir)/doc/\""       >> $(DX_CONFIG_FILE); \
    617         echo " " >> $(DX_CONFIG_FILE); \
    618 \
    619         $(DX_CONF_DIR)/build                                            >> $(DX_CONFIG_FILE); \
    620 \
    621         $(DX_CONF_DIR)/progress                                         >> $(DX_CONFIG_FILE); \
    622         if test $(DEBUG) -ge 2 ; then \
    623          echo "QUIET                    = \"NO\""                       >> $(DX_CONFIG_FILE); \
    624         else \
    625          echo "QUIET                    = \"YES\""                      >> $(DX_CONFIG_FILE); \
    626         fi ;\
    627 \
    628         $(DX_CONF_DIR)/input                                            >> $(DX_CONFIG_FILE); \
    629         echo "INPUT                     = $(DOXYGEN_INPUT)"             >> $(DX_CONFIG_FILE); \
    630 \
    631         $(DX_CONF_DIR)/preprocessor                                     >> $(DX_CONFIG_FILE); \
    632         echo "INCLUDE_PATH              = \"$(top_srcdir)\""            >> $(DX_CONFIG_FILE); \
    633         echo "PREDEFINED                = \"HAVE_CONFIG_H= \""          >> $(DX_CONFIG_FILE); \
    634         \
    635         $(DX_CONF_DIR)/confopts                                         >> $(DX_CONFIG_FILE)
    636 
    637 doc-delete:
    638         @echo "Deleting doxygen Documentation"
    639         rm -rf $(top_srcdir)/doc/html
    640         rm -rf $(top_srcdir)/doc/latex
    641 
    642 distclean-local: doc-delete
    643         rm -f $(top_srcdir)/orxodox
    644 
    645 clean-local:  doc-delete
    646 
    647 all-local: doc
    648 
    649 .PHONY: doc doc-config doc-delete
     602@DOXYGEN_TRUE@doc:
     603@DOXYGEN_TRUE@  if test ! -e $(DX_CONFIG_FILE); then \
     604@DOXYGEN_TRUE@   make doc-config; \
     605@DOXYGEN_TRUE@  fi
     606@DOXYGEN_TRUE@  @echo "Generating doxygen Documentation"; \
     607@DOXYGEN_TRUE@  $(DOXYGEN) $(DX_CONFIG_FILE)
     608
     609@DOXYGEN_TRUE@doc-config:
     610@DOXYGEN_TRUE@  @echo "Generationg doxygen configuration File." ; \
     611@DOXYGEN_TRUE@  if test -e  "$(top_srcdir)/orxodox"; then \
     612@DOXYGEN_TRUE@    echo "deleting existing Configuration File" ; \
     613@DOXYGEN_TRUE@    rm $(top_srcdir)/orxodox ; \
     614@DOXYGEN_TRUE@  fi ; \
     615@DOXYGEN_TRUE@  touch $(DX_CONFIG_FILE) ; \
     616@DOXYGEN_TRUE@  $(DX_CONF_DIR)/project                                          >> $(DX_CONFIG_FILE); \
     617@DOXYGEN_TRUE@  echo "PROJECT_NAME              = \"$(PACKAGE_NAME)\""          >> $(DX_CONFIG_FILE); \
     618@DOXYGEN_TRUE@  echo "PROJECT_NUMBER            = \"$(PACKAGE_VERSION)\""       >> $(DX_CONFIG_FILE); \
     619@DOXYGEN_TRUE@  echo "OUTPUT_DIRECTORY          = \"$(top_srcdir)/doc/\""       >> $(DX_CONFIG_FILE); \
     620@DOXYGEN_TRUE@  echo " " >> $(DX_CONFIG_FILE); \
     621@DOXYGEN_TRUE@\
     622@DOXYGEN_TRUE@  $(DX_CONF_DIR)/build                                            >> $(DX_CONFIG_FILE); \
     623@DOXYGEN_TRUE@\
     624@DOXYGEN_TRUE@  $(DX_CONF_DIR)/progress                                         >> $(DX_CONFIG_FILE); \
     625@DOXYGEN_TRUE@  if test $(DEBUG) -ge 2 ; then \
     626@DOXYGEN_TRUE@   echo "QUIET                    = \"NO\""                       >> $(DX_CONFIG_FILE); \
     627@DOXYGEN_TRUE@  else \
     628@DOXYGEN_TRUE@   echo "QUIET                    = \"YES\""                      >> $(DX_CONFIG_FILE); \
     629@DOXYGEN_TRUE@  fi ;\
     630@DOXYGEN_TRUE@\
     631@DOXYGEN_TRUE@  $(DX_CONF_DIR)/input                                            >> $(DX_CONFIG_FILE); \
     632@DOXYGEN_TRUE@  echo "INPUT                     = $(DOXYGEN_INPUT)"             >> $(DX_CONFIG_FILE); \
     633@DOXYGEN_TRUE@\
     634@DOXYGEN_TRUE@  $(DX_CONF_DIR)/preprocessor                                     >> $(DX_CONFIG_FILE); \
     635@DOXYGEN_TRUE@  echo "INCLUDE_PATH              = \"$(top_srcdir)\""            >> $(DX_CONFIG_FILE); \
     636@DOXYGEN_TRUE@  echo "PREDEFINED                = \"HAVE_CONFIG_H= \""          >> $(DX_CONFIG_FILE); \
     637@DOXYGEN_TRUE@  \
     638@DOXYGEN_TRUE@  $(DX_CONF_DIR)/confopts                                         >> $(DX_CONFIG_FILE)
     639
     640@DOXYGEN_TRUE@doc-delete:
     641@DOXYGEN_TRUE@  @echo "Deleting doxygen Documentation"
     642@DOXYGEN_TRUE@  rm -rf $(top_srcdir)/doc/html
     643@DOXYGEN_TRUE@  rm -rf $(top_srcdir)/doc/latex
     644
     645@DOXYGEN_TRUE@distclean-local: doc-delete
     646@DOXYGEN_TRUE@  rm -f $(top_srcdir)/orxodox
     647
     648@DOXYGEN_TRUE@clean-local:  doc-delete
     649
     650@DOXYGEN_TRUE@all-local: doc
     651
     652@DOXYGEN_TRUE@.PHONY: doc doc-config doc-delete
    650653
    651654# Local Variables:
Note: See TracChangeset for help on using the changeset viewer.