summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorTaeksu Shin <taeksu.shin@samsung.com>2012-08-21 18:39:39 +0900
committerTaeksu Shin <taeksu.shin@samsung.com>2012-08-21 18:39:39 +0900
commit2742d6ca5da37180225fab6ef8bf55467956d25c (patch)
treec850c3679b282551927505d3162e6c60118d0609 /Makefile.am
parentb5dc236b1575fe5846d01881893b3aaef43ecbcc (diff)
downloadepson-inkjet-printer-escpr-6d43a6c7dff7368165f237cef22d0231d977484b.tar.gz
epson-inkjet-printer-escpr-6d43a6c7dff7368165f237cef22d0231d977484b.tar.bz2
epson-inkjet-printer-escpr-6d43a6c7dff7368165f237cef22d0231d977484b.zip
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am63
1 files changed, 63 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..30b3930
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,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