forked from FFTW/benchfft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
47 lines (40 loc) · 1.13 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
AUTOMAKE_OPTIONS = gnu
ACLOCAL_AMFLAGS=-I ./m4
SUBDIRS = libbench benchees scripts
EXTRA_DIST = COPYRIGHT bootstrap.sh m4
OUTFILE=
collect:
$(SHELL) ${top_srcdir}/scripts/collect ${top_builddir}/benchees $(OUTFILE)
# handle recursive ``make benchmark'' etc.
BENCHFFT_RECURSIVE_TARGETS = benchmark-recursive accuracy-recursive \
fftinfo-recursive
benchmark: benchmark-recursive
benchmark-am:
accuracy: accuracy-recursive
accuracy-am:
fftinfo: fftinfo-recursive
fftinfo-am:
$(BENCHFFT_RECURSIVE_TARGETS):
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"