summaryrefslogtreecommitdiff
path: root/Build/source/utils/t1utils/t1utils-src/Makefile.am
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-02-22 14:32:24 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-02-22 14:32:24 +0000
commit219422c79bc57bb21826b71c12b30ccf46958612 (patch)
treeb1f89adea21785c7d3bd137c024c872e951a94e3 /Build/source/utils/t1utils/t1utils-src/Makefile.am
parent8052a06025869b72db511941b83bca715d3db239 (diff)
utils/t1utils: New convention
git-svn-id: svn://tug.org/texlive/trunk@39819 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/t1utils/t1utils-src/Makefile.am')
-rw-r--r--Build/source/utils/t1utils/t1utils-src/Makefile.am42
1 files changed, 42 insertions, 0 deletions
diff --git a/Build/source/utils/t1utils/t1utils-src/Makefile.am b/Build/source/utils/t1utils/t1utils-src/Makefile.am
new file mode 100644
index 00000000000..bf0d339b582
--- /dev/null
+++ b/Build/source/utils/t1utils/t1utils-src/Makefile.am
@@ -0,0 +1,42 @@
+## Process this file with automake to produce Makefile.in
+AUTOMAKE_OPTIONS = foreign check-news
+
+bin_PROGRAMS = t1ascii t1binary t1asm t1disasm t1unmac t1mac
+man_MANS = t1ascii.1 t1binary.1 t1asm.1 t1disasm.1 t1unmac.1 t1mac.1
+
+t1ascii_SOURCES = include/lcdf/clp.h include/lcdf/inttypes.h \
+ clp.c t1lib.h t1lib.c t1ascii.c
+t1binary_SOURCES = include/lcdf/clp.h include/lcdf/inttypes.h \
+ clp.c t1lib.h t1lib.c t1binary.c
+t1asm_SOURCES = include/lcdf/clp.h include/lcdf/inttypes.h \
+ clp.c t1lib.h t1asmhelp.h t1lib.c t1asm.c
+t1disasm_SOURCES = include/lcdf/clp.h include/lcdf/inttypes.h \
+ clp.c t1lib.h t1asmhelp.h t1lib.c t1disasm.c
+t1unmac_SOURCES = include/lcdf/clp.h include/lcdf/inttypes.h \
+ clp.c t1lib.h t1lib.c t1unmac.c
+t1mac_SOURCES = include/lcdf/clp.h include/lcdf/inttypes.h \
+ clp.c t1lib.h t1lib.c t1mac.c
+
+AM_CPPFLAGS = -I$(top_srcdir)/include
+LDADD = @LIBOBJS@
+
+EXTRA_DIST = $(man_MANS) t1utils.spec
+
+versionize:
+ perl -pi -e "s/^\\.ds V.*/.ds V $(VERSION)/;" t1ascii.1 t1binary.1 t1disasm.1 t1asm.1 t1unmac.1 t1mac.1
+ perl -pi -e 's/^Version:(\s*).*/Version:$${1}$(VERSION)/; s/$(PACKAGE)-[\w.]+\.tar\.gz/$(PACKAGE)-$(VERSION).tar.gz/;' t1utils.spec
+ perl -pi -e 's/VERSION [\d.ab]+/VERSION $(VERSION)/;' README
+
+rpm: dist
+ buildarch=`rpm --showrc | awk '/^build arch/ { print $$4; }'` ; \
+ mkdir -p /tmp/rpm-t1u/SOURCES /tmp/rpm-t1u/RPMS/$$buildarch \
+ /tmp/rpm-t1u/BUILD ; \
+ echo 'include: /usr/lib/rpm/rpmrc' > /tmp/rpm-t1u/rc ; \
+ echo 'macrofiles: /usr/lib/rpm/macros:/tmp/rpm-t1u/macros' >> /tmp/rpm-t1u/rc ; \
+ echo '%_topdir /tmp/rpm-t1u' > /tmp/rpm-t1u/macros ; \
+ cp $(PACKAGE)-$(VERSION).tar.gz /tmp/rpm-t1u/SOURCES ; \
+ rpmbuild --rcfile /tmp/rpm-t1u/rc -bb t1utils.spec ; \
+ cp /tmp/rpm-t1u/RPMS/$$buildarch/*.rpm .
+ rm -rf /tmp/rpm-t1u
+
+.PHONY: srclinks versionize rpm