blob: e863773c4f8f0cb79c3166d2ed436fc715481cae (
plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/lib \
-I$(includedir) \
$(DEFAULT_CPPFLAGS)
AM_CFLAGS = \
$(DEFAULT_CFLAGS)
common_libs = \
$(top_builddir)/lib/libpbcore.la \
$(top_builddir)/discover/libparser.la
noinst_PROGRAMS = parser-test
parser_test_SOURCES = parser-test.c
parser_test_LDADD = $(common_libs)
noinst_DATA = \
data/grub-01/grub.cfg \
data/kboot-01/expected-output \
data/kboot-01/etc/kboot.conf \
data/kboot-02/expected-output \
data/kboot-02/etc/kboot.conf \
data/kboot-03/expected-output \
data/kboot-03/etc/kboot.conf \
data/kboot-04/expected-output \
data/kboot-04/etc/kboot.conf \
data/kboot-05/expected-output \
data/kboot-05/etc/kboot.conf \
data/kboot-06/expected-output \
data/kboot-06/etc/kboot.conf \
data/kboot-07/etc/kboot.conf \
data/yaboot-01/expected-output \
data/yaboot-01/etc/yaboot.conf \
data/yaboot-02/etc/yaboot.conf \
data/yaboot-03/etc/yaboot.conf \
data/yaboot-04/etc/yaboot.conf \
data/yaboot-05/etc/yaboot.conf \
data/yaboot-06/etc/yaboot.conf
composed_noinst_scripts = \
run-parser-tests
noinst_SCRIPTS = $(composed_noinst_scripts)
edit = sed \
-e 's|@PACKAGE_NAME\@|$(PACKAGE_NAME)|g' \
-e 's|@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|g' \
-e 's|@PACKAGE_BUGREPORT\@|$(PACKAGE_BUGREPORT)|g' \
-e 's|@abs_srcdir\@|$(abs_srcdir)|g' \
-e 's|@abs_builddir\@|$(abs_builddir)|g' \
-e 's|@prefix\@|$(prefix)|g'
run-parser-tests: Makefile $(srcdir)/run-parser-tests.in
rm -f $@ $@.tmp
$(edit) $(srcdir)/$@.in >$@.tmp
chmod +x $@.tmp
mv $@.tmp $@
composed_files = $(composed_noinst_scripts)
EXTRA_DIST = $(addsuffix .in, $(composed_files))
MAINTAINERCLEANFILES = Makefile.in
CLEANFILES = $(composed_files) $(addsuffix .tmp, $(composed_files))
|