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 : Sat Feb 2 16:54:42 2019 |
---|
14 | ## Update Count : 21 |
---|
15 | ############################################################################### |
---|
16 | |
---|
17 | AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names |
---|
18 | ACLOCAL_AMFLAGS = -I automake |
---|
19 | |
---|
20 | MAINTAINERCLEANFILES = lib/* bin/* tests/.deps/* tests/.out/* # order important |
---|
21 | DISTCLEANFILES = version |
---|
22 | |
---|
23 | SUBDIRS = driver src . @LIBCFA_TARGET_DIRS@ |
---|
24 | DIST_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 | |
---|
33 | noinst_DATA = @LIBCFA_TARGET_MAKEFILES@ |
---|
34 | |
---|
35 | man1_MANS = doc/man/cfa.1 |
---|
36 | |
---|
37 | EXTRA_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 | |
---|
39 | debug=yes |
---|
40 | check: |
---|
41 | $(MAKE) -C tests all-tests installed=no debug=${debug} |
---|
42 | |
---|
43 | installcheck: |
---|
44 | $(MAKE) -C tests all-tests installed=yes debug=${debug} |
---|
45 | |
---|
46 | configure-libcfa: @LIBCFA_TARGET_MAKEFILES@ |
---|
47 | @true |
---|
48 | |
---|
49 | status: @LIBCFA_TARGET_MAKEFILES@ |
---|
50 | @echo -ne "translator\n\t" |
---|
51 | @./config.status --config | sed "s/ /\n\t/g; s/\t'/\t/g; s/'\n/\n/g; s/^'//g; s/'$$//g" |
---|
52 | @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" |
---|
53 | |
---|
54 | mostlyclean-local: @LIBCFA_TARGET_MAKEFILES@ |
---|
55 | for dir in @LIBCFA_TARGET_DIRS@; do \ |
---|
56 | $(MAKE) -C $${dir} mostlyclean; \ |
---|
57 | done |
---|
58 | |
---|
59 | clean-local: @LIBCFA_TARGET_MAKEFILES@ |
---|
60 | for dir in @LIBCFA_TARGET_DIRS@; do \ |
---|
61 | $(MAKE) -C $${dir} clean; \ |
---|
62 | done |
---|
63 | |
---|
64 | distclean-local: @LIBCFA_TARGET_MAKEFILES@ |
---|
65 | for dir in @LIBCFA_TARGET_DIRS@; do \ |
---|
66 | $(MAKE) -C $${dir} distclean; \ |
---|
67 | rm $${dir}/config.data; \ |
---|
68 | done |
---|