Last change
on this file since 3167 was
3167,
checked in by bensch, 19 years ago
|
orxonox/trunk: it is now possible to autogenerate the documentation out of /trunk with make doc.
The documentation will be moved to the folder doc/html and doc/latex.
|
File size:
1.3 KB
|
Line | |
---|
1 | DX_CONFIG_FILE = "$(top_srcdir)/orxodox" |
---|
2 | DX_CONF_DIR = "$(top_srcdir)/doc/doxyconf" |
---|
3 | |
---|
4 | doc: |
---|
5 | @echo "Generating doxygen Documentation"; \ |
---|
6 | if test ! -e $(DX_CONFIG_FILE); then \ |
---|
7 | make doc-config; \ |
---|
8 | fi |
---|
9 | doxygen $(DX_CONFIG_FILE) |
---|
10 | |
---|
11 | doc-config: |
---|
12 | @echo "Generationg doxygen configuration File." ; \ |
---|
13 | if test -e "$(top_srcdir)/orxodox"; then \ |
---|
14 | echo "deleting existing Configuration File" ; \ |
---|
15 | rm $(top_srcdir)/orxodox ; \ |
---|
16 | fi ; \ |
---|
17 | touch $(DX_CONFIG_FILE) ; \ |
---|
18 | $(DX_CONF_DIR)/project >> $(DX_CONFIG_FILE); \ |
---|
19 | echo "PROJECT_NAME = \"$(PACKAGE_NAME)\"" >> $(DX_CONFIG_FILE); \ |
---|
20 | echo "PROJECT_NUMBER = \"$(PACKAGE_VERSION)\"" >> $(DX_CONFIG_FILE); \ |
---|
21 | echo "OUTPUT_DIRECTORY = \"$(top_srcdir)/doc/\"" >> $(DX_CONFIG_FILE); \ |
---|
22 | echo " " >> $(DX_CONFIG_FILE); \ |
---|
23 | \ |
---|
24 | $(DX_CONF_DIR)/build >> $(DX_CONFIG_FILE); \ |
---|
25 | \ |
---|
26 | $(DX_CONF_DIR)/progress >> $(DX_CONFIG_FILE); \ |
---|
27 | \ |
---|
28 | $(DX_CONF_DIR)/input >> $(DX_CONFIG_FILE); \ |
---|
29 | echo "INPUT = $(DOXYGEN_INPUT)" >> $(DX_CONFIG_FILE); \ |
---|
30 | \ |
---|
31 | $(DX_CONF_DIR)/preprocessor >> $(DX_CONFIG_FILE); \ |
---|
32 | echo "INCLUDE_PATH = \"$(top_srcdir)\"" >> $(DX_CONFIG_FILE); \ |
---|
33 | echo "PREDEFINED = \"HAVE_CONFIG_H= \"" >> $(DX_CONFIG_FILE); \ |
---|
34 | \ |
---|
35 | $(DX_CONF_DIR)/confopts >> $(DX_CONFIG_FILE) |
---|
36 | |
---|
37 | |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | .PHONY: doc doc-config |
---|
42 | |
---|
43 | # Local Variables: |
---|
44 | # mode: makefile |
---|
45 | # End: |
---|
Note: See
TracBrowser
for help on using the repository browser.