Tizen 2.0 Release
[external/epson-laser-printer-escpage.git] / Makefile.am
1 ## Makefile.am -- an automake template for a Makefile.in file
2 ## EPSON ESC/Page Printer Driver for Linux
3 ## Copyright (C) Seiko Epson Corporation 2000-2012.
4 ##  This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2 of the License, or
7 ## (at your option) any later version.
8 ##
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ## GNU General Public License for more details.
13 ##
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA.
17
18 SUBDIRS = \
19         lib \
20         ppd \
21         src
22
23 ACLOCAL_AMFLAGS = -I m4
24
25 noinst_DATA = \
26         debian/control \
27         debian/rules
28
29 debian/control: $(srcdir)/Makefile $(srcdir)/debian/control.in
30         rm -f $@ $@.tmp; \
31         sed -e 's|[@]PACKAGE_BUGREPORT[@]|$(PACKAGE_BUGREPORT)|' \
32             -e 's|[@]PACKAGE_NAME[@]|$(PACKAGE_NAME)|' \
33             -e 's|[@]PACKAGE_TARNAME[@]|$(PACKAGE_TARNAME)|' \
34             '$(top_srcdir)/$@.in' > $@.tmp; \
35         mv $@.tmp $@
36
37 debian/rules: $(srcdir)/Makefile $(srcdir)/debian/rules.in
38         rm -f $@ $@.tmp; \
39         sed -e 's|[@]CUPS_FILTER_DIR[@]|$(CUPS_FILTER_DIR)|' \
40             -e 's|[@]CUPS_PPD_DIR[@]|$(CUPS_PPD_DIR)|' \
41             -e 's|[@]PACKAGE_TARNAME[@]|$(PACKAGE_TARNAME)|' \
42             '$(top_srcdir)/$@.in' > $@.tmp; \
43         mv $@.tmp $@; \
44         chmod +x $@
45
46 #  Automate maintenance of the list of shipped M4 macros.
47 #  Do not change the list unnecessarily.  As a side effect, this also
48 #  works around issues with a read-only $(srcdir) during a 'distcheck'.
49
50 $(top_builddir)/m4-macros: $(top_srcdir)/m4
51         echo M4_MACROS = `ls $^ | sed 's,^,m4/,'` > m4-macros.tmp
52         cmp -s m4-macros.tmp $@ || cp m4-macros.tmp $@
53         rm m4-macros.tmp
54
55 include m4-macros
56
57
58 EXTRA_DIST = \
59         $(M4_MACROS) \
60         $(noinst_DATA) \
61         AUTHORS \
62         COPYING \
63         NEWS \
64         README \
65         README.ja \
66         debian/changelog \
67         debian/compat \
68         debian/control.in \
69         debian/copyright \
70         debian/docs \
71         debian/postinst \
72         debian/postrm \
73         debian/rules.in \
74         epson-laser-printer-escpage.spec \
75         epson-laser-printer-escpage.spec.in \
76         m4