source: stable/0.8/Makemain.inc

Last change on this file was 3482, checked in by tkr, 6 years ago

Adding separate target for making PDF doxygen documentation

  • Property svn:keywords set to Author Date Id Revision
File size: 4.8 KB
Line 
1# Copyright (C) 2006, 2007 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Eclipse Public License.
4
5## $Id: Makemain.inc 3482 2015-03-26 03:06:39Z stefan $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9########################################################################
10#                    Documentation installation                        #
11########################################################################
12
13DocFiles =  README AUTHORS LICENSE
14DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
15
16COIN_HAS_DOXYGEN = @COIN_HAS_DOXYGEN_TRUE@TRUE
17COIN_HAS_LATEX = @COIN_HAS_LATEX_TRUE@TRUE
18
19doxygen-docs:
20        if test "$(COIN_HAS_DOXYGEN)" = TRUE; then \
21          if test -d "doxydoc/"; then \
22            doxygen doxydoc/doxygen.conf;\
23          fi;\
24        fi
25
26pdf-doxygen-docs: doxygen-docs
27        if test "$(COIN_HAS_DOXYGEN)" = TRUE; then \
28          if test -d "doxydoc/latex"; then \
29            if test "$(COIN_HAS_LATEX)" = TRUE; then \
30              cd doxydoc/latex;\
31              $(MAKE) pdf;\
32              cd -;\
33            fi;\
34          fi;\
35        fi
36
37clean-doxygen-docs:
38        if test -d "doxydoc/"; then \
39          cd doxydoc ;\
40          rm -rf html latex *.log *.tag;\
41        fi
42
43install-doxygen-docs: doxygen-docs
44        if test "$(COIN_HAS_DOXYGEN)" = TRUE; then \
45          if test -d "doxydoc/"; then \
46            test -d "$(DESTDIR)$(DocInstallDir)/doxydoc" || $(mkdir_p) "$(DESTDIR)$(DocInstallDir)/doxydoc"; \
47            $(INSTALL_DATA) @coin_doxy_tagname@ "$(DESTDIR)$(DocInstallDir)/@coin_doxy_tagname@";\
48            if test -f "doxydoc/latex/refman.pdf"; then \
49              $(INSTALL_DATA) doxydoc/latex/refman.pdf "$(DESTDIR)$(DocInstallDir)";\
50            fi;\
51            if test -d "doxydoc/html"; then \
52              test -d "$(DESTDIR)$(DocInstallDir)/doxydoc/search/" || $(mkdir_p) "$(DESTDIR)$(DocInstallDir)/doxydoc/search/"; \
53              $(INSTALL_DATA) doxydoc/html/*.* "$(DESTDIR)$(DocInstallDir)/doxydoc";\
54              $(INSTALL_DATA) doxydoc/html/search/*.* "$(DESTDIR)$(DocInstallDir)/doxydoc/search";\
55            fi;\
56          fi;\
57        fi
58
59uninstall-doxygen-docs:
60        if test -d "$(DESTDIR)$(DocInstallDir)/doxydoc/"; then \
61          rm -rf "$(DESTDIR)$(DocInstallDir)/doxydoc/"; \
62        fi
63        if test -f "$(DESTDIR)$(DocInstallDir)/refman.pdf"; then \
64          rm -f "$(DESTDIR)$(DocInstallDir)/refman.pdf"; \
65        fi
66
67all-doxygen-docs:
68        for dir in $(subdirs) ; do \
69          do_project=true;\
70          for proj in $(COIN_SKIP_DOXYGEN); do\
71            if test $$dir = $$proj; then\
72              do_project=false;\
73            fi;\
74          done;\
75          if test -r $$dir/doxydoc & $$do_project = true; then \
76            (cd $$dir ; $(MAKE) doxygen-docs) \
77          fi ; \
78        done ;
79
80clean-all-doxygen-docs:
81        for dir in $(subdirs) ; do \
82          if test -r $$dir/doxydoc ; then \
83            (cd $$dir ; $(MAKE) clean-doxygen-docs) \
84          fi ; \
85        done ;
86
87install-all-doxygen-docs: all-doxygen-docs
88        for dir in $(subdirs) ; do \
89          do_project=true;\
90          for proj in $(COIN_SKIP_DOXYGEN); do\
91            if test $$dir = $$proj; then\
92              do_project=false;\
93            fi;\
94          done;\
95          if test -r $$dir/doxydoc & $$do_project = true; then \
96            (cd $$dir ; $(MAKE) install-doxygen-docs) \
97          fi ; \
98        done ;
99
100uninstall-all-doxygen-docs:
101        for dir in $(subdirs) ; do \
102          if test -r $$dir/doxydoc ; then \
103            (cd $$dir ; $(MAKE) uninstall-doxygen-docs) \
104          fi ; \
105        done ;
106
107install-doc: $(DocFiles)
108        test -z "$(DocInstallDir)" || $(mkdir_p) "$(DESTDIR)$(DocInstallDir)"
109        for file in $(DocFiles); do \
110          if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
111          if test -f "$$dir$$file"; then $(INSTALL_DATA) "$$dir$$file" "$(DESTDIR)$(DocInstallDir)/$$file"; fi; \
112        done
113
114uninstall-doc:
115        for file in $(DocFiles); do \
116          rm -f "$(DESTDIR)$(DocInstallDir)/$$file"; \
117        done
118
119########################################################################
120#                         Maintainer Stuff                             #
121########################################################################
122
123if MAINTAINER_MODE
124
125# Make sure acinclude is using most recent coin.m4
126$(srcdir)/acinclude.m4: $(BUILDTOOLSDIR)/coin.m4
127        cat $(LIBTOOLM4) $< > $@
128
129# Make sure the autotools scripts are up to date
130$(AUX_DIR)/install-sh: $(BUILDTOOLSDIR)/install-sh
131        cp $< $@
132
133$(AUX_DIR)/missing: $(BUILDTOOLSDIR)/missing
134        cp $< $@
135
136$(AUX_DIR)/config.guess: $(BUILDTOOLSDIR)/config.guess
137        cp $< $@
138
139$(AUX_DIR)/config.sub: $(BUILDTOOLSDIR)/config.sub
140        cp $< $@
141
142$(AUX_DIR)/depcomp: $(BUILDTOOLSDIR)/depcomp
143        cp $< $@
144
145$(AUX_DIR)/ltmain.sh: $(BUILDTOOLSDIR)/ltmain.sh
146        cp $< $@
147
148# Take care of updating externals (if Dependencies file exists)
149if HAVE_EXTERNALS
150$(top_builddir)/Makefile: .Dependencies-stamp
151
152.Dependencies-stamp: $(srcdir)/Dependencies
153        cd $(srcdir); BuildTools/set_externals Dependencies
154        touch .Dependencies-stamp
155
156update-externals: .Dependencies-stamp
157        cd $(srcdir); svn update
158
159endif
160
161endif
162
163if HAVE_EXTERNALS
164EXTRA_DIST += Dependencies
165DISTCLEANFILES += .Dependencies-stamp
166endif
167
168DISTCLEANFILES += $(VPATH_DISTCLEANFILES)
169
170.PHONY: install-doc uninstall-doc update-externals
Note: See TracBrowser for help on using the repository browser.