Changeset 044ae62 for Makefile.am


Ignore:
Timestamp:
May 29, 2023, 11:44:29 AM (2 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT
Children:
fa2c005
Parents:
3a513d89 (diff), 2b78949 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into ADT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r3a513d89 r044ae62  
    1111## Created On       : Sun May 31 22:14:18 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Sat Feb  2 16:54:42 2019
    14 ## Update Count     : 21
     13## Last Modified On : Wed May 17 11:02:34 2023
     14## Update Count     : 56
    1515###############################################################################
    1616
     
    2424DIST_SUBDIRS = driver src . libcfa tests
    2525
    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)
     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}
    3232
    3333noinst_DATA = @LIBCFA_TARGET_MAKEFILES@
     
    3737EXTRA_DIST = LICENSE doc/man/cfa.1 libcfa/configure libcfa/Makefile.dist.am libcfa/Makefile.dist.in tools/build/distcc_hash tools/build/push2dist.sh
    3838
    39 debug=yes
    40 check:
    41         $(MAKE) -C tests all-tests installed=no debug=${debug}
     39debug ?= yes
     40installed ?= no
     41ARCH = ${if ${arch},"arch=${arch}"}
     42arch_support = "x86/x64/arm"
    4243
    43 installcheck:
    44         $(MAKE) -C tests all-tests installed=yes debug=${debug}
     44# target "all" created by automake
    4545
    46 configure-libcfa: @LIBCFA_TARGET_MAKEFILES@
    47         @true
     46check :
     47        ${MAKE} -C tests tests installed=${installed} debug=${debug} ${ARCH}
    4848
    49 status: @LIBCFA_TARGET_MAKEFILES@
     49tests : check # synonym
     50
     51installcheck :
     52        ${MAKE} -C tests tests installed=yes debug=${debug} ${ARCH}
     53
     54installtest : installcheck # synonym
     55
     56status : @LIBCFA_TARGET_MAKEFILES@
    5057        @echo -ne "translator\n\t"
    5158        @./config.status --config | sed "s/ /\n\t/g; s/\t'/\t/g; s/'\n/\n/g; s/^'//g; s/'$$//g"
    5259        @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"
    5360
    54 @LIBCFA_TARGET_DIRS@::
    55         $(MAKE) -C $@ $(MAKECMDGOALS)
     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"
    5674
    57 mostlyclean clean distclean maintainer-clean: @LIBCFA_TARGET_DIRS@
     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 TracChangeset for help on using the changeset viewer.