summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 30b3930d5ff5142a286e27212a12f38fabd16fcb (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
SUBDIRS = \
	layout_script \
	lib \
	ppd \
	src

ACLOCAL_AMFLAGS = -I m4

noinst_DATA = \
	debian/control \
	debian/rules

debian/control: $(srcdir)/Makefile $(srcdir)/debian/control.in
	rm -f $@ $@.tmp; \
	sed -e 's|[@]PACKAGE_BUGREPORT[@]|$(PACKAGE_BUGREPORT)|' \
	    -e 's|[@]PACKAGE_NAME[@]|$(PACKAGE_NAME)|' \
	    -e 's|[@]PACKAGE_TARNAME[@]|$(PACKAGE_TARNAME)|' \
	    '$(top_srcdir)/$@.in' > $@.tmp; \
	mv $@.tmp $@

debian/rules: $(srcdir)/Makefile $(srcdir)/debian/rules.in
	rm -f $@ $@.tmp; \
	sed -e 's|[@]CUPS_FILTER_DIR[@]|$(CUPS_FILTER_DIR)|' \
	    -e 's|[@]CUPS_PPD_DIR[@]|$(CUPS_PPD_DIR)|' \
	    -e 's|[@]PACKAGE_TARNAME[@]|$(PACKAGE_TARNAME)|' \
	    '$(top_srcdir)/$@.in' > $@.tmp; \
	mv $@.tmp $@; \
	chmod +x $@

#  Automate maintenance of the list of shipped M4 macros.
#  Do not change the list unnecessarily.  As a side effect, this also
#  works around issues with a read-only $(srcdir) during a 'distcheck'.

$(top_builddir)/m4-macros: $(top_srcdir)/m4
	echo M4_MACROS = `ls $^ | sed 's,^,m4/,'` > m4-macros.tmp
	cmp -s m4-macros.tmp $@ || cp m4-macros.tmp $@
	rm m4-macros.tmp

include m4-macros


EXTRA_DIST = \
	$(M4_MACROS) \
	$(noinst_DATA) \
	AUTHORS \
	COPYING \
	NEWS \
	README \
	README.ja \
	bootstrap \
	debian/changelog \
	debian/compat \
	debian/control.in \
	debian/copyright \
	debian/docs \
	debian/postinst \
	debian/postrm \
	debian/rules.in \
	epson-inkjet-printer-escpr.spec \
	epson-inkjet-printer-escpr.spec.in \
	lsb/lsb-rpm.spec \
	lsb/lsb-rpm.spec.in \
	m4