Fix problems with relative srcdir in testsuite/runtest.main/options.exp
[dejagnu.git] / Makefile.am
blob6c48c2062b31eeca2a5abb1d0dcc6d5ea484d3d2
1 # Copyright (C) 1992-2019, 2020 Free Software Foundation, Inc.
3 # This file is part of DejaGnu.
5 # DejaGnu is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # DejaGnu is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with DejaGnu; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
19 # Process this file with automake to generate Makefile.in
21 AUTOMAKE_OPTIONS = dejagnu
22 export DEJAGNU
24 EXTRA_DIST = ChangeLog-1992 MAINTAINERS dejagnu runtest \
25         $(pkgdata_DATA) $(config_DATA) $(baseboard_DATA) \
26         $(commands_DATA) $(TESTSUITE_FILES) $(TEXINFO_TEX)\
27         $(CONTRIB)
29 CLEANFILES = options-init.exp stats-init.exp
31 clean-local: clean-local-check
32 .PHONY: clean-local-check
33 clean-local-check:
34         -rm -rf testsuite/launcher.all/command/bin
35         -rm -rf testsuite/launcher.all/command/share
36         -rm -rf testsuite/report-card.all/onetest
37         -rm -rf testsuite/report-card.all/passes
39 # Give a reassuring message so that users know the "build" worked.
40 all-local:
41         @echo "Done. Now run 'make install'."
43 bin_SCRIPTS = dejagnu runtest
44 include_HEADERS = dejagnu.h
46 pkgdata_DATA = \
47   stub-loader.c \
48   testglue.c \
49   runtest.exp \
50   lib/debugger.exp \
51   lib/dejagnu.exp \
52   lib/dg.exp \
53   lib/dmucs.exp \
54   lib/framework.exp \
55   lib/ftp.exp \
56   lib/kermit.exp \
57   lib/libgloss.exp \
58   lib/remote.exp \
59   lib/rlogin.exp \
60   lib/rsh.exp \
61   lib/ssh.exp \
62   lib/standard.exp \
63   lib/target.exp \
64   lib/targetdb.exp \
65   lib/telnet.exp \
66   lib/tip.exp \
67   lib/utils.exp
69 commandsdir = $(pkgdatadir)/commands
70 commands_DATA = \
71         commands/help.sh \
72         commands/report-card.awk
74 configdir = $(pkgdatadir)/config
75 config_DATA = \
76         config/README \
77         config/adb.exp \
78         config/aarch64-fv8.exp \
79         config/default.exp \
80         config/gdb-comm.exp \
81         config/gdb_stub.exp \
82         config/sid.exp \
83         config/sim.exp \
84         config/unix.exp \
85         config/vxworks.exp
87 baseboarddir = $(pkgdatadir)/baseboards
88 baseboard_DATA = \
89         baseboards/README \
90         baseboards/aarch64-sim.exp \
91         baseboards/androideabi.exp \
92         baseboards/am33_2.0-libremote.exp \
93         baseboards/arm-ice.exp \
94         baseboards/arm-sid.exp \
95         baseboards/arm-sim.exp \
96         baseboards/basic-sid.exp \
97         baseboards/basic-sim.exp \
98         baseboards/cris-sim.exp \
99         baseboards/d30v-sim.exp \
100         baseboards/fr30-sim.exp \
101         baseboards/frv-sim.exp \
102         baseboards/gdbserver-sample.exp \
103         baseboards/i386-sid.exp \
104         baseboards/iq2000-sim.exp \
105         baseboards/jmr3904-sim.exp \
106         baseboards/linux-gdbserver.exp \
107         baseboards/linux-libremote.exp \
108         baseboards/m68k-sid.exp \
109         baseboards/mcore-moto-sim.exp \
110         baseboards/mcore-sim.exp \
111         baseboards/mips-lnews-sim.exp \
112         baseboards/mips-lsi-sim.exp \
113         baseboards/mips-sim-idt32.exp \
114         baseboards/mips-sim-idt64.exp \
115         baseboards/mips-sim.exp \
116         baseboards/mips-sim-mti32.exp \
117         baseboards/mips-sim-mti64.exp \
118         baseboards/mips-sim-mti64_n32.exp \
119         baseboards/mips-sim-mti64_64.exp \
120         baseboards/mips-sim-sde32.exp \
121         baseboards/mips-sim-sde64.exp \
122         baseboards/mmixware-sim.exp \
123         baseboards/mn10200-sim.exp \
124         baseboards/mn10300-sim.exp \
125         baseboards/msp430-sim.exp \
126         baseboards/mt-sid.exp \
127         baseboards/multi-sim.exp \
128         baseboards/powerpc-sim.exp \
129         baseboards/powerpcle-sim.exp \
130         baseboards/rx-sim.exp \
131         baseboards/sh-sid.exp \
132         baseboards/sh-sim.exp \
133         baseboards/sparc-sim.exp \
134         baseboards/sparc64-sim.exp \
135         baseboards/sparclite-sim-le.exp \
136         baseboards/sparclite-sim.exp \
137         baseboards/tx39-sim.exp \
138         baseboards/unix.exp \
139         baseboards/v850-sim.exp \
140         baseboards/visium-sim.exp \
141         baseboards/vr4100-sim.exp \
142         baseboards/vr4111-sim.exp \
143         baseboards/vr4300-sim.exp \
144         baseboards/xtensa-sim.exp
146 djlibexecdir = $(pkgdatadir)/libexec
147 djlibexec_SCRIPTS = config.guess
149 # Contributed scripts, etc.
151 CONTRIB = contrib/compare_tests contrib/sum2junit.sh \
152         contrib/mysql/create-db.sql contrib/mysql/importxml.sh \
153         contrib/mysql/make-datafile.sh contrib/mysql/plot.sh \
154         contrib/mysql/README contrib/mysql/sum2xml.sh
156 # Testsuite.
158 TESTSUITE_FILES = \
159         testsuite/launcher.all/command.exp \
160         testsuite/launcher.all/command/commands/bar-baz.awk \
161         testsuite/launcher.all/command/commands/bar.awk \
162         testsuite/launcher.all/command/commands/bar.sh \
163         testsuite/launcher.all/command/commands/baz-quux.gawk \
164         testsuite/launcher.all/command/commands/foo.sh \
165         testsuite/launcher.all/command/commands/foo.tcl \
166         testsuite/launcher.all/help.exp \
167         testsuite/launcher.all/interp.exp \
168         testsuite/launcher.all/verbose.exp \
169         testsuite/report-card.all/onetest.exp \
170         testsuite/report-card.all/passes.exp \
171         testsuite/runtest.libs/topdir/subdir1/subsubdir1/subsubfile1 \
172         testsuite/runtest.libs/topdir/subdir1/subfile1 \
173         testsuite/runtest.libs/topdir/subdir1/subfile2 \
174         testsuite/runtest.libs/topdir/subdir2/subfile2 \
175         testsuite/runtest.libs/load_lib.exp \
176         testsuite/runtest.libs/libs.exp \
177         testsuite/runtest.libs/default_procs.tcl \
178         testsuite/runtest.libs/clone_output.test \
179         testsuite/runtest.libs/config.test \
180         testsuite/runtest.libs/remote.test \
181         testsuite/runtest.libs/target.test \
182         testsuite/runtest.libs/utils.test \
183         testsuite/runtest.main/options.exp \
184         testsuite/runtest.main/options/testsuite/null.test/null.exp \
185         testsuite/runtest.main/stats.exp \
186         testsuite/runtest.main/stats/testsuite/stat.test/stats-sub.exp \
187         testsuite/lib/bohman_ssd.exp \
188         testsuite/lib/launcher.exp \
189         testsuite/lib/libdejagnu.exp \
190         testsuite/lib/libsup.exp \
191         testsuite/lib/report-card.exp \
192         testsuite/lib/runtest.exp \
193         testsuite/lib/util-defs.exp \
194         testsuite/libdejagnu/tunit.exp
196 DEJATOOL = launcher libdejagnu report-card runtest
198 RUNTEST = ${top_srcdir}/runtest
200 AM_CXXFLAGS = -I$(top_srcdir) -g
201 check_PROGRAMS = unit
202 unit_SOURCES = testsuite/libdejagnu/unit.cc
204 # Documentation.
206 TEXINFO_TEX = doc/texinfo.tex
207 dist_man_MANS = doc/dejagnu.1 \
208         doc/dejagnu-help.1 \
209         doc/dejagnu-report-card.1 \
210         doc/runtest.1
211 info_TEXINFOS = doc/dejagnu.texi
213 pip-install:
214         pip3 install --upgrade -e $(top_srcdir)
216 install-data-hook:
217         revision=`cd $(srcdir) &&  git rev-parse --short HEAD` \
218         && sed -i -e "s/^set *frame_version.*/set frame_version $(BRANCH)-$${revision}/" $(pkgdatadir)/runtest.exp