-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
233 lines (173 loc) · 7.02 KB
/
Makefile.am
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
## -*- mode: makefile -*-
##*************************************************************************##
## SCALASCA http://www.scalasca.org/ ##
##*************************************************************************##
## Copyright (c) 1998-2021 ##
## Forschungszentrum Juelich GmbH, Juelich Supercomputing Centre ##
## ##
## Copyright (c) 2009-2013 ##
## German Research School for Simulation Sciences GmbH, ##
## Laboratory for Parallel Programming ##
## ##
## 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. ##
##*************************************************************************##
## Subdirectories to be built recursively
SUBDIRS = $(subdirs) $(ax_config_subdirs)
## Options passed to aclocal to specify local macro directories. Although
## ACLOCAL_AMFLAGS should be replaced by AC_CONFIG_MACRO_DIRS, aclocal-1.13.4
## doesn't honor the paths provided to AC_CONFIG_MACRO_DIRS. See
## https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21352
ACLOCAL_AMFLAGS = -I build-config/m4 -I build-config/common/m4
## Include Makefile.am snippets
include build-includes/common.am
## Convenience variables
DISTDIR = $(top_distdir)$(ac_scorep_doxygen_distdir)
## Additional custom installation directories
manualdir = $(docdir)/manual
## Initialize some variables to be able to use '+=' in Makefile.am snippets.
## This includes the `TESTS` variable, since non-color automake only provides
## $(am__tty_colors) if tests are in use.
BUILT_SOURCES =
CLEANFILES =
EXTRA_DIST =
TESTS =
manual_DATA =
PHONY_TARGETS =
## To install configuration summary file(s)
pkgdata_DATA = \
if PLATFORM_MIC
# On MIC, install config.summary also in $pkgdatadir/mic
micpkgdatadir = $(pkgdatadir)/mic
micpkgdata_DATA = \
else !PLATFORM_MIC
TARGETS = mic
endif !PLATFORM_MIC
## To install extra documentation files
dist_doc_DATA = \
README \
OPEN_ISSUES
## To clean up configuration summary files
DISTCLEANFILES = \
config.summary \
##--- Hooks -----------------------------------------------------------------
dist-hook: \
prohibit-make-dist-with-disabled-components \
copy-revision-file-to-dist \
copy-generator-parser-files-to-dist \
copy-user-documentation-to-dist
install-data-local: \
install-pearl-example
install-data-hook: \
install-user-documentation
$(AM_V_at)list='$(TARGETS)'; test -n "$$list" || exit 0; \
for target in $$list; do \
if test -f $(DESTDIR)$(pkgdatadir)/$$target/@[email protected]; then \
{ \
echo; \
echo; \
echo "=====[ Target: $$target ]===================="; \
echo; \
cat "$(DESTDIR)$(pkgdatadir)/$$target/@[email protected]"; \
} >>"$(DESTDIR)$(pkgdatadir)/@[email protected]"; \
fi \
done
install-exec-hook: \
install-mic-wrapper
uninstall-hook: \
uninstall-user-documentation \
uninstall-mic-wrapper
clean-local: \
clean-user-documentation \
clean-developer-documentation
PHONY_TARGETS += \
prohibit-make-dist-with-disabled-components
prohibit-make-dist-with-disabled-components:
@$(am__tty_colors); \
if test "x$(PROHIBIT_MAKE_DIST)" != "x"; then \
echo "$${red}error: Cannot create distribution because of disabled components or use of$$std"; \
echo " $${red}external packages. Rerun configure with these flags to ensure a$$std"; \
echo " $${red}self-contained distribution:$$std"; \
echo; \
echo " $${blu}$(PROHIBIT_MAKE_DIST)$$std"; \
echo; \
exit 1; \
fi
##--- Extra distribution files ----------------------------------------------
include build-config/platforms/platforms.am
include build-config/common/platforms.am
EXTRA_DIST += \
src/config.h \
share/scalasca.errors \
build-config/tap-driver.sh \
build-config/common/generate-library-version.sh \
build-config/common/generate-package-version.sh \
build-config/common/test-runner-mpi.sh \
build-config/common/test-runner-plain.sh
if !CROSS_BUILD
EXTRA_DIST += \
build-frontend/configure.ac \
build-frontend/aclocal.m4 \
build-frontend/Makefile.am \
build-frontend/Makefile.in \
build-frontend/configure \
src/config-frontend.h.in
endif !CROSS_BUILD
##--- REVISION file related targets -----------------------------------------
PHONY_TARGETS += \
copy-revision-file-to-dist \
update-revision-file
copy-revision-file-to-dist: update-revision-file
$(AM_V_at)$(MKDIR_P) "$(DISTDIR)/build-config"
$(AM_V_at)cp -fp "$(srcdir)/build-config/REVISION" "$(DISTDIR)/build-config/"
$(AM_V_at)case `cat "$(DISTDIR)/build-config/REVISION"` in *-dirty) \
echo >&2 "WARNING: distribution does not match a single, unmodified revision.";; \
esac
if GIT_CONTROLLED
update-revision-file:
@$(am__tty_colors); \
if $(AM_V_P); then echo "cd $(srcdir) && git describe --long --always --dirty | $(SED) 's/.*-g//' >'build-config/REVISION'"; \
else echo " GEN $${mgn}$(srcdir)/build-config/REVISION$$std"; fi; \
$(am__cd) $(srcdir) && git describe --long --always --dirty | $(SED) 's/.*-g//' >"build-config/REVISION"
else !GIT_CONTROLLED
update-revision-file:
endif !GIT_CONTROLLED
##--- Targets related to error code headers ---------------------------------
DISTCLEANFILES += \
src/ScalascaErrorCodes.h \
src/scalasca_error_decls.gen.h
BUILT_SOURCES += \
src/ScalascaErrorCodes.h \
src/scalasca_error_decls.gen.h
src/ScalascaErrorCodes.h: \
share/scalasca.errors
src/scalasca_error_decls.gen.h: \
share/scalasca.errors
##--- Uncrustify-related targets --------------------------------------------
if GIT_CONTROLLED
if HAVE_UNCRUSTIFY
beautify-local:
@$(am__cd) $(srcdir) && ./common/beautifier/beautify
endif HAVE_UNCRUSTIFY
endif GIT_CONTROLLED
##--- Include Makefile.am snippets ------------------------------------------
include doc/Makefile.top.inc.am
include doc/doxygen-common/Makefile.top.inc.am
include doc/doxygen-dev/pearl/Makefile.top.inc.am
include doc/doxygen-dev/scout/Makefile.top.inc.am
include doc/doxygen-dev/silas/Makefile.top.inc.am
include doc/doxygen-dev/utils/Makefile.top.inc.am
include doc/doxygen-user/manual/Makefile.top.inc.am
include doc/doxygen-user/manpages/Makefile.top.inc.am
include doc/doxygen-user/pearl/Makefile.top.inc.am
include doc/patterns/Makefile.top.inc.am
include doc/quick-reference/Makefile.top.inc.am
include share/Makefile.top.inc.am
include src/pearl/example/Makefile.top.inc.am
include src/scout/generator/Makefile.top.inc.am
include src/utils/Makefile.top.inc.am
.PHONY: $(PHONY_TARGETS)