source: Makefile.am @ 8f650f0

Last change on this file since 8f650f0 was e3d4fd1, checked in by Peter A. Buhr <pabuhr@…>, 18 months ago

more cleanup of the make-help option

  • Property mode set to 100644
File size: 2.9 KB
Line 
1######################## -*- Mode: Makefile-Automake -*- ######################
2##
3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
4##
5## The contents of this file are covered under the licence agreement in the
6## file "LICENCE" distributed with Cforall.
7##
8## Makefile.am --
9##
10## Author           : Peter A. Buhr
11## Created On       : Sun May 31 22:14:18 2015
12## Last Modified By : Peter A. Buhr
13## Last Modified On : Wed May 17 11:02:34 2023
14## Update Count     : 56
15###############################################################################
16
17AUTOMAKE_OPTIONS = foreign    # do not require all the GNU file names
18ACLOCAL_AMFLAGS  = -I automake
19
20MAINTAINERCLEANFILES = lib/* bin/* tests/.deps/* tests/.out/* # order important
21DISTCLEANFILES = version
22
23SUBDIRS = driver src . @LIBCFA_TARGET_DIRS@
24DIST_SUBDIRS = driver src . libcfa tests
25
26@LIBCFA_TARGET_MAKEFILES@ : Makefile ${srcdir}/libcfa/configure
27        @${eval config_file = ${dir ${@}}config.data}
28        @ls ${config_file} || (echo "Missing config.data, re-run configure script again" && false)
29        @${eval config_data = ${shell cat ${config_file}}}
30        @echo "Configuring libcfa (${abs_top_srcdir}/libcfa/configure) with '${config_data}' from ${shell pwd} / ${dir ${@}}"
31        @cd ${dir ${@}} && ${abs_top_srcdir}/libcfa/configure ${config_data}
32
33noinst_DATA = @LIBCFA_TARGET_MAKEFILES@
34
35man1_MANS = doc/man/cfa.1
36
37EXTRA_DIST = LICENSE doc/man/cfa.1 libcfa/configure libcfa/Makefile.dist.am libcfa/Makefile.dist.in tools/build/distcc_hash tools/build/push2dist.sh
38
39debug ?= yes
40installed ?= no
41ARCH = ${if ${arch},"arch=${arch}"}
42arch_support = "x86/x64/arm"
43
44# target "all" created by automake
45
46check :
47        ${MAKE} -C tests tests installed=${installed} debug=${debug} ${ARCH}
48
49tests : check # synonym
50
51installcheck :
52        ${MAKE} -C tests tests installed=yes debug=${debug} ${ARCH}
53
54installtest : installcheck # synonym
55
56status : @LIBCFA_TARGET_MAKEFILES@
57        @echo -ne "translator\n\t"
58        @./config.status --config | sed "s/ /\n\t/g; s/\t'/\t/g; s/'\n/\n/g; s/^'//g; s/'$$//g"
59        @find libcfa -name config.status -printf "\n%h\n\t" -exec {} --config \; | sed "s/ /\n\t/g; s/\t'/\t/g; s/'\n/\n/g; s/^'//g; s/'$$//g"
60
61help :
62        @echo "user targets:"
63        @echo "    Compile compiler/runtime."
64        @echo "    $$ make (null) / all"
65        @echo ""
66        @echo "    Compile compiler/runtime and run test suite."
67        @echo "    $$ make check / tests [debug=yes/no] [installed=yes/no] [arch=${arch_support}]"
68        @echo ""
69        @echo "    Compile compiler/runtime, install, and run test suite on installed system."
70        @echo "    $$ make installcheck / installtests [debug=yes/no] installed=yes [arch=${arch_support}]"
71        @echo ""
72        @echo "    Print configuration parameters and system build information."
73        @echo "    $$ make status"
74
75configure-libcfa : @LIBCFA_TARGET_MAKEFILES@
76        @true
77
78@LIBCFA_TARGET_DIRS@ ::
79        ${MAKE} -C ${@} ${MAKECMDGOALS}
80
81mostlyclean clean distclean maintainer-clean : @LIBCFA_TARGET_DIRS@
Note: See TracBrowser for help on using the repository browser.