Changeset e2887a9 for Makefile.am


Ignore:
Timestamp:
May 12, 2023, 6:51:41 PM (12 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
b3ce76f
Parents:
4dd10fb
Message:

add make-help option and change parenthesis to braces for variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r4dd10fb re2887a9  
    1111## Created On       : Sun May 31 22:14:18 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Mon May  1 16:38:04 2023
    14 ## Update Count     : 32
     13## Last Modified On : Fri May 12 18:30:01 2023
     14## Update Count     : 42
    1515###############################################################################
    16 
    17 # user targets:
    18 #  Compile compiler/runtime and run test suite.
    19 #  $ make check / tests [debug=yes/no] [installed=yes/no] [arch=x86/x64/arm]
    20 
    21 #  $ make installcheck [debug=yes/no] installed=yes [arch=x86/x64/arm]
    2216
    2317AUTOMAKE_OPTIONS = foreign    # do not require all the GNU file names
     
    3024DIST_SUBDIRS = driver src . libcfa tests
    3125
    32 @LIBCFA_TARGET_MAKEFILES@ : Makefile $(srcdir)/libcfa/configure
    33         @$(eval config_file = $(dir $@)config.data)
    34         @ls $(config_file) || (echo "Missing config.data, re-run configure script again" && false)
    35         @$(eval config_data = $(shell cat $(config_file)))
    36         @echo "Configuring libcfa ($(abs_top_srcdir)/libcfa/configure) with '$(config_data)' from $(shell pwd) / $(dir $@)"
    37         @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}
    3832
    3933noinst_DATA = @LIBCFA_TARGET_MAKEFILES@
     
    4539debug ?= yes
    4640installed ?= no
    47 ARCH = $(if $(arch),"arch=$(arch)")
     41ARCH = ${if ${arch},"arch=${arch}"}
    4842
    49 check:
    50         $(MAKE) -C tests tests installed=$(installed) debug=$(debug) $(ARCH)
     43check :
     44        ${MAKE} -C tests tests installed=${installed} debug=${debug} ${ARCH}
    5145
    52 tests: check # synonym
     46tests : check # synonym
    5347
    54 installcheck:
    55         $(MAKE) -C tests tests installed=yes debug=$(debug) $(ARCH)
     48installcheck :
     49        ${MAKE} -C tests tests installed=yes debug=${debug} ${ARCH}
    5650
    57 configure-libcfa: @LIBCFA_TARGET_MAKEFILES@
     51installtest : installcheck # synonym
     52
     53help :
     54        @echo "user targets:"
     55        @echo "    Compile compiler/runtime and run test suite."
     56        @echo "    $$ make check / tests [debug=yes/no] [installed=yes/no] [arch=x86/x64/arm]"
     57        @echo ""
     58        @echo "    Compile compiler/runtime, run test suite, and install."
     59        @echo "    $$ make installcheck / installtests [debug=yes/no] installed=yes [arch=x86/x64/arm]"
     60
     61configure-libcfa : @LIBCFA_TARGET_MAKEFILES@
    5862        @true
    5963
    60 status: @LIBCFA_TARGET_MAKEFILES@
     64status : @LIBCFA_TARGET_MAKEFILES@
    6165        @echo -ne "translator\n\t"
    6266        @./config.status --config | sed "s/ /\n\t/g; s/\t'/\t/g; s/'\n/\n/g; s/^'//g; s/'$$//g"
    6367        @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"
    6468
    65 @LIBCFA_TARGET_DIRS@::
    66         $(MAKE) -C $@ $(MAKECMDGOALS)
     69@LIBCFA_TARGET_DIRS@ ::
     70        ${MAKE} -C ${@} ${MAKECMDGOALS}
    6771
    68 mostlyclean clean distclean maintainer-clean: @LIBCFA_TARGET_DIRS@
     72mostlyclean clean distclean maintainer-clean : @LIBCFA_TARGET_DIRS@
Note: See TracChangeset for help on using the changeset viewer.