-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile.am
64 lines (50 loc) · 1.76 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
SUBDIRS = tools programs doc .
DISTCHECK_CONFIGURE_FLAGS = --target=mtalpha
ACLOCAL_AMFLAGS = -I build-aux
# Preset variables so they can be incremented by
# the included Makefiles below.
bin_PROGRAMS =
dist_man1_MANS =
noinst_LIBRARIES =
CLEANFILES =
MAINTAINERCLEANFILES =
EXTRA_DIST =
SUFFIXES =
BUILT_SOURCES =
##
## Multi-way distcheck
##
CHECK_TARGETS = mtsparc mtalpha mips mipsel or1knd
check-target-%:
mkdir -p build-$* && \
cdir=`cd $(top_srcdir) && pwd` && \
cd build-$* && \
$$cdir/configure --target=$* && \
$(MAKE) $(AM_MAKEFLAGS) check
smoketest-target-%:
mkdir -p build-$* && \
cdir=`cd $(top_srcdir) && pwd` && \
cd build-$* && \
$$cdir/configure $(SMOKETEST_CONFIGURE_FLAGS) --target=$* && \
$(MAKE) $(AM_MAKEFLAGS) smoketest
distcheck-target-%:
$(MAKE) $(AM_MAKEFLAGS) distcheck DISTCHECK_CONFIGURE_FLAGS='--target=$* --disable-sdl'
$(MAKE) $(AM_MAKEFLAGS) distcheck DISTCHECK_CONFIGURE_FLAGS='--target=$* --enable-sdl'
smoketest-all: $(foreach T,$(CHECK_TARGETS),smoketest-target-$(T))
check-all: $(foreach T,$(CHECK_TARGETS),check-target-$(T))
discheck-all: $(foreach T,$(CHECK_TARGETS),distcheck-target-$(T))
.PHONY: check-all distcheck-all smoketest-all
include $(srcdir)/build-aux/version.mk
dist-hook: check-version
echo $(VERSION) >$(distdir)/build-aux/tarball-version
.PHONY: ChangeLog
ChangeLog:
$(AM_V_GEN)if test -e $(srcdir)/.git; then \
(cd $(srcdir) && git log --stat --graph) >[email protected] || (rm -f [email protected]; false); \
if ! (test -r $(srcdir)/$@ && cmp [email protected] $(srcdir)/$@) >/dev/null 2>&1; then mv -f [email protected] $@; else rm -f [email protected]; fi; \
fi
## General build rules.
include $(srcdir)/Makefile.inc
## General test rules. This must be at the end because it sets
## SECONDEXPANSION.
include $(srcdir)/tests/Makefile.inc