"Fossies" - the Fresh Open Source Software Archive

Member "scalasca-2.6/Makefile.am" (19 Apr 2021, 7192 Bytes) of package /linux/misc/scalasca-2.6.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "Makefile.am": 2.3.1_vs_2.4.

    1 ## -*- mode: makefile -*-
    2 ##*************************************************************************##
    3 ##  SCALASCA    http://www.scalasca.org/                                   ##
    4 ##*************************************************************************##
    5 ##  Copyright (c) 1998-2021                                                ##
    6 ##  Forschungszentrum Juelich GmbH, Juelich Supercomputing Centre          ##
    7 ##                                                                         ##
    8 ##  Copyright (c) 2009-2013                                                ##
    9 ##  German Research School for Simulation Sciences GmbH,                   ##
   10 ##  Laboratory for Parallel Programming                                    ##
   11 ##                                                                         ##
   12 ##  This software may be modified and distributed under the terms of       ##
   13 ##  a BSD-style license.  See the COPYING file in the package base         ##
   14 ##  directory for details.                                                 ##
   15 ##*************************************************************************##
   16 
   17 
   18 ## Subdirectories to be built recursively
   19 SUBDIRS = $(subdirs) $(ax_config_subdirs)
   20 
   21 ## Options passed to aclocal to specify local macro directories. Although
   22 ## ACLOCAL_AMFLAGS should be replaced by AC_CONFIG_MACRO_DIRS, aclocal-1.13.4
   23 ## doesn't honor the paths provided to AC_CONFIG_MACRO_DIRS. See
   24 ## https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21352
   25 ACLOCAL_AMFLAGS = -I build-config/m4 -I build-config/common/m4
   26 
   27 ## Include Makefile.am snippets
   28 include build-includes/common.am
   29 
   30 ## Convenience variables
   31 DISTDIR = $(top_distdir)$(ac_scorep_doxygen_distdir)
   32 
   33 ## Additional custom installation directories
   34 manualdir = $(docdir)/manual
   35 
   36 ## Initialize some variables to be able to use '+=' in Makefile.am snippets.
   37 ## This includes the `TESTS` variable, since non-color automake only provides
   38 ## $(am__tty_colors) if tests are in use.
   39 BUILT_SOURCES =
   40 CLEANFILES    =
   41 EXTRA_DIST    =
   42 TESTS         =
   43 manual_DATA   =
   44 PHONY_TARGETS =
   45 
   46 ## To install configuration summary file(s)
   47 pkgdata_DATA = \
   48     @PACKAGE@.summary
   49 
   50 if PLATFORM_MIC
   51 
   52 # On MIC, install config.summary also in $pkgdatadir/mic
   53 micpkgdatadir   = $(pkgdatadir)/mic
   54 micpkgdata_DATA = \
   55     @PACKAGE@.summary
   56 
   57 else !PLATFORM_MIC
   58 
   59 TARGETS = mic
   60 
   61 endif !PLATFORM_MIC
   62 
   63 ## To install extra documentation files
   64 dist_doc_DATA = \
   65     README \
   66     OPEN_ISSUES
   67 
   68 ## To clean up configuration summary files
   69 DISTCLEANFILES = \
   70     config.summary \
   71     @PACKAGE@.summary
   72 
   73 
   74 ##--- Hooks -----------------------------------------------------------------
   75 
   76 dist-hook: \
   77     prohibit-make-dist-with-disabled-components \
   78     copy-revision-file-to-dist \
   79     copy-generator-parser-files-to-dist \
   80     copy-user-documentation-to-dist
   81 
   82 
   83 install-data-local: \
   84     install-pearl-example
   85 
   86 
   87 install-data-hook: \
   88     install-user-documentation
   89 	$(AM_V_at)list='$(TARGETS)'; test -n "$$list" || exit 0; \
   90 	for target in $$list; do \
   91 	    if test -f $(DESTDIR)$(pkgdatadir)/$$target/@PACKAGE@.summary; then \
   92 	        { \
   93 	            echo; \
   94 	            echo; \
   95 	            echo "=====[ Target: $$target ]===================="; \
   96 	            echo; \
   97 	            cat "$(DESTDIR)$(pkgdatadir)/$$target/@PACKAGE@.summary"; \
   98 	        } >>"$(DESTDIR)$(pkgdatadir)/@PACKAGE@.summary"; \
   99 	    fi \
  100 	done
  101 
  102 
  103 install-exec-hook: \
  104     install-mic-wrapper
  105 
  106 uninstall-hook: \
  107     uninstall-user-documentation \
  108     uninstall-mic-wrapper
  109 
  110 
  111 clean-local: \
  112     clean-user-documentation \
  113     clean-developer-documentation
  114 
  115 
  116 PHONY_TARGETS += \
  117     prohibit-make-dist-with-disabled-components
  118 prohibit-make-dist-with-disabled-components:
  119 	@$(am__tty_colors); \
  120         if test "x$(PROHIBIT_MAKE_DIST)" != "x"; then \
  121 	    echo "$${red}error: Cannot create distribution because of disabled components or use of$$std"; \
  122 	    echo "       $${red}external packages.  Rerun configure with these flags to ensure a$$std"; \
  123 	    echo "       $${red}self-contained distribution:$$std"; \
  124 	    echo; \
  125 	    echo "           $${blu}$(PROHIBIT_MAKE_DIST)$$std"; \
  126 	    echo; \
  127 	    exit 1; \
  128 	fi
  129 
  130 
  131 ##--- Extra distribution files ----------------------------------------------
  132 
  133 include build-config/platforms/platforms.am
  134 include build-config/common/platforms.am
  135 
  136 EXTRA_DIST += \
  137     src/config.h \
  138     share/scalasca.errors \
  139     build-config/tap-driver.sh \
  140     build-config/common/generate-library-version.sh \
  141     build-config/common/generate-package-version.sh \
  142     build-config/common/test-runner-mpi.sh \
  143     build-config/common/test-runner-plain.sh
  144 
  145 if !CROSS_BUILD
  146 
  147 EXTRA_DIST += \
  148     build-frontend/configure.ac \
  149     build-frontend/aclocal.m4 \
  150     build-frontend/Makefile.am \
  151     build-frontend/Makefile.in \
  152     build-frontend/configure \
  153     src/config-frontend.h.in
  154 
  155 endif !CROSS_BUILD
  156 
  157 
  158 ##--- REVISION file related targets -----------------------------------------
  159 
  160 PHONY_TARGETS += \
  161     copy-revision-file-to-dist \
  162     update-revision-file
  163 
  164 copy-revision-file-to-dist: update-revision-file
  165 	$(AM_V_at)$(MKDIR_P) "$(DISTDIR)/build-config"
  166 	$(AM_V_at)cp -fp "$(srcdir)/build-config/REVISION" "$(DISTDIR)/build-config/"
  167 	$(AM_V_at)case `cat "$(DISTDIR)/build-config/REVISION"` in *-dirty) \
  168 	    echo >&2 "WARNING: distribution does not match a single, unmodified revision.";; \
  169 	esac
  170 
  171 if GIT_CONTROLLED
  172 
  173 update-revision-file:
  174 	@$(am__tty_colors); \
  175 	if $(AM_V_P); then echo "cd $(srcdir) && git describe --long --always --dirty | $(SED) 's/.*-g//' >'build-config/REVISION'"; \
  176 	              else echo "  GEN      $${mgn}$(srcdir)/build-config/REVISION$$std"; fi; \
  177 	$(am__cd) $(srcdir) && git describe --long --always --dirty | $(SED) 's/.*-g//' >"build-config/REVISION"
  178 
  179 else !GIT_CONTROLLED
  180 
  181 update-revision-file:
  182 
  183 endif !GIT_CONTROLLED
  184 
  185 
  186 ##--- Targets related to error code headers ---------------------------------
  187 
  188 DISTCLEANFILES += \
  189     src/ScalascaErrorCodes.h \
  190     src/scalasca_error_decls.gen.h
  191 
  192 BUILT_SOURCES += \
  193     src/ScalascaErrorCodes.h \
  194     src/scalasca_error_decls.gen.h
  195 
  196 src/ScalascaErrorCodes.h: \
  197     share/scalasca.errors
  198 src/scalasca_error_decls.gen.h: \
  199     share/scalasca.errors
  200 
  201 
  202 ##--- Uncrustify-related targets --------------------------------------------
  203 
  204 if GIT_CONTROLLED
  205 if HAVE_UNCRUSTIFY
  206 
  207 beautify-local:
  208 	@$(am__cd) $(srcdir) && ./common/beautifier/beautify
  209 
  210 endif HAVE_UNCRUSTIFY
  211 endif GIT_CONTROLLED
  212 
  213 
  214 ##--- Include Makefile.am snippets ------------------------------------------
  215 
  216 include doc/Makefile.top.inc.am
  217 include doc/doxygen-common/Makefile.top.inc.am
  218 include doc/doxygen-dev/pearl/Makefile.top.inc.am
  219 include doc/doxygen-dev/scout/Makefile.top.inc.am
  220 include doc/doxygen-dev/silas/Makefile.top.inc.am
  221 include doc/doxygen-dev/utils/Makefile.top.inc.am
  222 include doc/doxygen-user/manual/Makefile.top.inc.am
  223 include doc/doxygen-user/manpages/Makefile.top.inc.am
  224 include doc/doxygen-user/pearl/Makefile.top.inc.am
  225 include doc/patterns/Makefile.top.inc.am
  226 include doc/quick-reference/Makefile.top.inc.am
  227 include share/Makefile.top.inc.am
  228 include src/pearl/example/Makefile.top.inc.am
  229 include src/scout/generator/Makefile.top.inc.am
  230 include src/utils/Makefile.top.inc.am
  231 
  232 
  233 .PHONY: $(PHONY_TARGETS)