]> git.ozlabs.org Git - petitboot/blob - test/parser/Makefile.am
Add missing EXTRA_DIST files
[petitboot] / test / parser / Makefile.am
1 #  This program is free software; you can redistribute it and/or modify
2 #  it under the terms of the GNU General Public License as published by
3 #  the Free Software Foundation; version 2 of the License.
4 #
5 #  This program is distributed in the hope that it will be useful,
6 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8 #  GNU General Public License for more details.
9 #
10 #  You should have received a copy of the GNU General Public License
11 #  along with this program; if not, write to the Free Software
12 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
13
14
15 AM_CPPFLAGS = \
16         -I$(top_srcdir) \
17         -I$(top_srcdir)/lib \
18         -I$(includedir) \
19         $(DEFAULT_CPPFLAGS)
20
21 AM_CFLAGS = \
22         $(DEFAULT_CFLAGS)
23
24 common_libs = \
25         $(top_builddir)/lib/libpbcore.la \
26         $(top_builddir)/discover/libparser.la
27
28 noinst_PROGRAMS = parser-test
29
30 parser_test_SOURCES = parser-test.c
31 parser_test_LDADD = $(common_libs)
32
33 noinst_DATA = \
34         data/grub-01/grub.cfg \
35         data/grub-02/grub.cfg \
36         data/kboot-01/expected-output \
37         data/kboot-01/etc/kboot.conf \
38         data/kboot-02/expected-output \
39         data/kboot-02/etc/kboot.conf \
40         data/kboot-03/expected-output \
41         data/kboot-03/etc/kboot.conf \
42         data/kboot-04/expected-output \
43         data/kboot-04/etc/kboot.conf \
44         data/kboot-05/expected-output \
45         data/kboot-05/etc/kboot.conf \
46         data/kboot-06/expected-output \
47         data/kboot-06/etc/kboot.conf \
48         data/kboot-07/etc/kboot.conf \
49         data/yaboot-01/expected-output \
50         data/yaboot-01/etc/yaboot.conf \
51         data/yaboot-02/etc/yaboot.conf \
52         data/yaboot-03/etc/yaboot.conf \
53         data/yaboot-04/etc/yaboot.conf \
54         data/yaboot-05/etc/yaboot.conf \
55         data/yaboot-06/etc/yaboot.conf
56
57 composed_noinst_scripts = \
58         run-parser-tests
59
60 noinst_SCRIPTS = $(composed_noinst_scripts)
61
62 edit = sed \
63         -e 's|@PACKAGE_NAME\@|$(PACKAGE_NAME)|g' \
64         -e 's|@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|g' \
65         -e 's|@PACKAGE_BUGREPORT\@|$(PACKAGE_BUGREPORT)|g' \
66         -e 's|@abs_srcdir\@|$(abs_srcdir)|g' \
67         -e 's|@abs_builddir\@|$(abs_builddir)|g' \
68         -e 's|@prefix\@|$(prefix)|g'
69
70 run-parser-tests: Makefile $(srcdir)/run-parser-tests.in
71         rm -f $@ $@.tmp
72         $(edit) $(srcdir)/$@.in >$@.tmp
73         chmod +x $@.tmp
74         mv $@.tmp $@
75
76 composed_files = $(composed_noinst_scripts)
77
78 EXTRA_DIST = $(addsuffix .in, $(composed_files)) $(noinst_DATA)
79
80 MAINTAINERCLEANFILES = Makefile.in
81
82 CLEANFILES = $(composed_files) $(addsuffix .tmp, $(composed_files))