File: Makefile.inc.am

package info (click to toggle)
opari2 2.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,808 kB
  • sloc: cpp: 8,533; sh: 5,755; ansic: 5,129; f90: 530; fortran: 341; makefile: 227; awk: 179
file content (199 lines) | stat: -rw-r--r-- 8,436 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
## -*- mode: makefile -*-

##
## This file is part of the Score-P software (http://www.score-p.org)
##
## Copyright (c) 2009-2011,
## RWTH Aachen University, Germany
##
## Copyright (c) 2009-2011,
## Gesellschaft fuer numerische Simulation mbH Braunschweig, Germany
##
## Copyright (c) 2009-2011, 2019-2020,
## Technische Universitaet Dresden, Germany
##
## Copyright (c) 2009-2011,
## University of Oregon, Eugene, USA
##
## Copyright (c) 2009-2011, 2015, 2019,
## Forschungszentrum Juelich GmbH, Germany
##
## Copyright (c) 2009-2011,
## German Research School for Simulation Sciences GmbH, Juelich/Aachen, Germany
##
## Copyright (c) 2009-2011,
## Technische Universitaet Muenchen, Germany
##
## This software may be modified and distributed under the terms of
## a BSD-style license.  See the COPYING file in the package base
## directory for details.
##

## file doc/doxygen-user/Makefile.inc.am


###############################################################################
## doxygen related targets
##

## In the following conditional we must distinguish if we are in "developer
## mode", i.e. if we are working on a svn working copy, or if we are in "user
## mode", i.e. we are working on a tarball.
##
## In developer mode we can create doxygen and pdf user documentation (make
## doxygen-user) that will be (automatically) included in the distribution at
## make dist. When creating a distribution, the developer should make sure
## that she has doxygen and related tools e.g. pdflatex in PATH in order to
## generate a complete documentation, see also
## build-config/common/m4/ac_scorep_doxygen.m4.
##
## make install is ignorant of documentation issues in developer mode.
##
## The user gets ready to install documentation in the tarball, i.e. there is no
## need to run doxygen and pdflatex in user mode. In user mode the provided
## documentation is just copied to a subdirectory of $prefix.

DOC_SRC_DIR = $(srcdir)/doc

doxygen-uninstall:
	rm -rf $(DESTDIR)$(docdir)

if GIT_CONTROLLED

USER_DOC_DIR = $(top_distdir)$(ac_scorep_doxygen_distdir)/doc

doxygen-user-install:

doxygen-user-generate: doxygen-user-pdf doxygen-user-html-compress copy-revision-file-to-dist

update-revision:
	@$(am__tty_colors); \
	if $(AM_V_P); then echo "cd $(srcdir) && git describe --always --dirty > 'build-config/REVISION'"; \
	else               echo "  GEN      $${mgn}$(srcdir)/build-config/REVISION$$std"; fi; \
	cd $(srcdir) && git describe --always --dirty > "build-config/REVISION"

copy-revision-file-to-dist:
	@$(MKDIR_P) "$(distdir)/build-config/"
	@cp -p "$(srcdir)/build-config/REVISION" "$(distdir)/build-config/"
	@case `cat "$(distdir)/build-config/REVISION"` in *-dirty)                           \
            echo >&2 "WARNING: distribution does not match a single, unmodified revision.";; \
        esac

doxygen-user-html-compress:
	$(AM_V_at)if test -d "$(USER_DOC_DIR)/html"; then                     \
	    cd "$(USER_DOC_DIR)"; tar czf html.tar.gz html; rm -rf html/;    \
	fi

doxygen-project-number: update-revision
	$(AM_V_at)echo "PROJECT_NUMBER = \"@PACKAGE_VERSION@ (revision `cat $(srcdir)/build-config/REVISION`)\"" > doc/doxygen-project-number.cfg

CLEANFILES += doc/doxygen-project-number.cfg

doxygen-user-clean:
	rm -rf $(USER_DOC_DIR)/*


if HAVE_DOXYGEN

OPARI2_V_DOXYGEN = $(opari2__v_DOXYGEN_@AM_V@)
opari2__v_DOXYGEN_ = $(opari2__v_DOXYGEN_@AM_DEFAULT_V@)
opari2__v_DOXYGEN_0 = @$(am__tty_colors); echo "  DOXYGEN  $${blu}$@$$std";
opari2__v_DOXYGEN_1 =

OPARI2_V_DEVNULL = $(opari2__v_DEVNULL_@AM_V@)
opari2__v_DEVNULL_ = $(opari2__v_DEVNULL_@AM_DEFAULT_V@)
opari2__v_DEVNULL_0 = >/dev/null 2>&1
opari2__v_DEVNULL_1 =

doxygen-user: doxygen-project-number doc/doxygen-user/main.dox doc/doxygen-user.cfg
	$(AM_V_at)$(MKDIR_P) "$(USER_DOC_DIR)/tags"
	$(AM_V_at)echo "OUTPUT_DIRECTORY = $(USER_DOC_DIR)" > doc/doxygen-user-at-make-time.cfg
	$(AM_V_at)echo "GENERATE_TAGFILE = $(USER_DOC_DIR)/tags/@PACKAGE@.tag" >> doc/doxygen-user-at-make-time.cfg
	$(AM_V_at)cat doc/doxygen-project-number.cfg doc/doxygen-user-at-make-time.cfg doc/doxygen-user.cfg > doc/doxygen-user-html.cfg
	$(AM_V_at)$(MKDIR_P) "$(USER_DOC_DIR)/html"
	$(AM_V_at)cp $(abs_srcdir)/doc/images/* $(USER_DOC_DIR)/html
	$(AM_V_at)if $(AM_V_P); then echo "QUIET = NO"; \
	else                         echo "QUIET = YES"; fi >>doc/doxygen-user-html.cfg
	$(OPARI2_V_DOXYGEN)$(DOXYGEN) doc/doxygen-user-html.cfg

CLEANFILES += doc/doxygen-user-html.cfg doc/doxygen-user-at-make-time.cfg doxygen.err

else !HAVE_DOXYGEN

doxygen-user:
	echo "WARNING: doxygen not available. Cannot generate documentation." >&2

endif !HAVE_DOXYGEN

if HAVE_DOXYGEN_LATEX

OPARI2_V_pdflatex    = $(opari2__v_pdflatex_@AM_V@)
opari2__v_pdflatex_  = $(opari2__v_pdflatex_@AM_DEFAULT_V@)
opari2__v_pdflatex_0 = -interaction batchmode
opari2__v_pdflatex_1 = -interaction nonstopmode

doxygen-user-pdf: doxygen-user
	$(AM_V_at)cat doc/doxygen-user-html.cfg > doc/doxygen-user-pdf.cfg
	$(AM_V_at)echo "ENABLED_SECTIONS = LATEX" >> doc/doxygen-user-pdf.cfg
	$(AM_V_at)echo "GENERATE_HTML    = NO"    >> doc/doxygen-user-pdf.cfg
	$(AM_V_at)cp $(DOC_SRC_DIR)/license.tex $(USER_DOC_DIR)/pdf/
	-$(AM_V_at)cp $(DOC_SRC_DIR)/images/project_logo.pdf $(USER_DOC_DIR)/pdf/
	$(AM_V_at)echo "LATEX_CMD_NAME = \"pdflatex -file-line-error $(OPARI2_V_pdflatex)\"" >>doc/doxygen-user-pdf.cfg
	$(AM_V_at)if $(AM_V_P); then echo "QUIET = NO"; \
	          else               echo "QUIET = YES"; \
	                             echo "MAKEINDEX_CMD_NAME = \"makeindex -q\""; \
	          fi >>doc/doxygen-user-pdf.cfg
	$(OPARI2_V_DOXYGEN)$(DOXYGEN) doc/doxygen-user-pdf.cfg
	$(AM_V_at)cd "$(USER_DOC_DIR)/pdf" && \
	make $(OPARI2_V_DEVNULL) &&           \
	mv refman.pdf ../ &&                  \
	rm -f * &&                            \
	mv ../refman.pdf @PACKAGE@.pdf

else !HAVE_DOXYGEN_LATEX

doxygen-user-pdf: doxygen-user
	echo "WARNING: pdflatex not available. Cannot generate doxygen pdf documentation." >&2
	if test -d "$(USER_DOC_DIR)/pdf"; then rm -rf "$(USER_DOC_DIR)/pdf"; fi

endif !HAVE_DOXYGEN_LATEX

else !GIT_CONTROLLED

doxygen-user-clean:

doxygen-user-generate:

doxygen-user-pdf:

doxygen-user-install:
	$(AM_V_at)if test -f "$(DOC_SRC_DIR)/html.tar.gz"; then                         \
            $(MKDIR_P) $(DESTDIR)$(docdir);                                             \
            $(INSTALL_DATA) $(DOC_SRC_DIR)/html.tar.gz $(DESTDIR)$(docdir)/html.tar.gz; \
            cd $(DESTDIR)$(docdir);                                                     \
            tar xzf html.tar.gz;                                                        \
            rm -f html.tar.gz;                                                          \
        fi
	$(AM_V_at)if test -d "$(DOC_SRC_DIR)"; then                                         \
            cd $(DOC_SRC_DIR);                                                              \
            dirs="pdf tags";                                                                \
            cd -;                                                                           \
            for i in $$dirs; do                                                             \
                if test -d "$(DOC_SRC_DIR)/$$i"; then                                       \
                    $(MKDIR_P) $(DESTDIR)$(docdir)/$$i;                                     \
                    cd $(DOC_SRC_DIR)/$$i;                                                  \
                    files=`find . -type f`;                                                 \
                    cd -;                                                                   \
                    for j in $$files; do                                                    \
                        $(INSTALL_DATA) $(DOC_SRC_DIR)/$$i/$$j $(DESTDIR)$(docdir)/$$i/$$j; \
                    done;                                                                   \
                fi;                                                                         \
            done;                                                                           \
        fi

copy-revision-file-to-dist:

endif !GIT_CONTROLLED
                                                                             ##
                                                                             ##
###############################################################################