Makefiles: remove -I$(includedir)
[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         $(DEFAULT_CPPFLAGS)
19
20 AM_CFLAGS = \
21         $(DEFAULT_CFLAGS)
22
23 common_libs = \
24         $(top_builddir)/lib/libpbcore.la \
25         $(top_builddir)/discover/libparser.o
26
27 noinst_PROGRAMS = parser-test
28
29 parser_test_SOURCES = parser-test.c
30 parser_test_LDADD = $(common_libs)
31
32 noinst_DATA = \
33         data/grub-01/grub.cfg \
34         data/grub-02/grub.cfg \
35         data/kboot-01/expected-output \
36         data/kboot-01/etc/kboot.conf \
37         data/kboot-02/expected-output \
38         data/kboot-02/etc/kboot.conf \
39         data/kboot-03/expected-output \
40         data/kboot-03/etc/kboot.conf \
41         data/kboot-04/expected-output \
42         data/kboot-04/etc/kboot.conf \
43         data/kboot-05/expected-output \
44         data/kboot-05/etc/kboot.conf \
45         data/kboot-06/expected-output \
46         data/kboot-06/etc/kboot.conf \
47         data/kboot-07/etc/kboot.conf \
48         data/yaboot-01/expected-output \
49         data/yaboot-01/etc/yaboot.conf \
50         data/yaboot-02/etc/yaboot.conf \
51         data/yaboot-03/etc/yaboot.conf \
52         data/yaboot-04/etc/yaboot.conf \
53         data/yaboot-05/etc/yaboot.conf \
54         data/yaboot-06/etc/yaboot.conf
55
56 composed_noinst_scripts = \
57         run-parser-tests
58
59 noinst_SCRIPTS = $(composed_noinst_scripts)
60
61 edit = sed \
62         -e 's|@PACKAGE_NAME\@|$(PACKAGE_NAME)|g' \
63         -e 's|@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|g' \
64         -e 's|@PACKAGE_BUGREPORT\@|$(PACKAGE_BUGREPORT)|g' \
65         -e 's|@abs_srcdir\@|$(abs_srcdir)|g' \
66         -e 's|@abs_builddir\@|$(abs_builddir)|g' \
67         -e 's|@prefix\@|$(prefix)|g'
68
69 run-parser-tests: Makefile $(srcdir)/run-parser-tests.in
70         rm -f $@ $@.tmp
71         $(edit) $(srcdir)/$@.in >$@.tmp
72         chmod +x $@.tmp
73         mv $@.tmp $@
74
75 composed_files = $(composed_noinst_scripts)
76
77 EXTRA_DIST = $(addsuffix .in, $(composed_files)) $(noinst_DATA)
78
79 MAINTAINERCLEANFILES = Makefile.in
80
81 CLEANFILES = $(composed_files) $(addsuffix .tmp, $(composed_files))