summaryrefslogtreecommitdiff
path: root/lib/libxtrans/Makefile.am
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-11-11 10:34:29 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-11-11 10:34:29 +0000
commitf961b846d9acf99006fd2891abe7a4a1a80815fa (patch)
tree1e00075a70b66e7ccb51e572b4f0905a1ccb6b0a /lib/libxtrans/Makefile.am
parent107937c8faa2844839fbc130ed032226354320a5 (diff)
Update to xtrans 1.2.6. Only a small bug fix in addition to the
usual doc/autotools churn.
Diffstat (limited to 'lib/libxtrans/Makefile.am')
-rw-r--r--lib/libxtrans/Makefile.am54
1 files changed, 8 insertions, 46 deletions
diff --git a/lib/libxtrans/Makefile.am b/lib/libxtrans/Makefile.am
index 11d311ee8..7ce7cbfee 100644
--- a/lib/libxtrans/Makefile.am
+++ b/lib/libxtrans/Makefile.am
@@ -1,3 +1,5 @@
+SUBDIRS=doc
+
Xtransincludedir = $(includedir)/X11/Xtrans
Xtransinclude_HEADERS = \
Xtrans.h \
@@ -15,55 +17,15 @@ aclocal_DATA = xtrans.m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xtrans.pc
-EXTRA_DIST = xtrans.pc.in ${aclocal_DATA} ChangeLog Xtrans.mm
+MAINTAINERCLEANFILES = ChangeLog INSTALL
+EXTRA_DIST = ${aclocal_DATA}
-MAINTAINERCLEANFILES = ChangeLog
+.PHONY: ChangeLog INSTALL
-.PHONY: ChangeLog
+INSTALL:
+ $(INSTALL_CMD)
ChangeLog:
$(CHANGELOG_CMD)
-dist-hook: ChangeLog
-
-# Rules to convert documentation from troff to other formats
-doc_sources = Xtrans.mm
-
-if HAVE_PS2PDF
-printable_format = .pdf
-else
-printable_format = .ps
-endif
-
-if BUILD_DOCS
-doc_DATA = $(doc_sources:.mm=.txt) \
- $(doc_sources:.mm=$(printable_format)) \
- $(doc_sources:.mm=.html)
-
-CLEANFILES = $(doc_DATA)
-MOSTLYCLEANFILES = index.*
-
-# Pass version string as a troff string for substitution
-GROFF_DEFS = -dxV="$(PACKAGE_STRING)"
-
-# -t to run through tbl
-GROFF_FLAGS = -t -mm $(GROFF_DEFS)
-
-SUFFIXES = .mm .ps .txt .html .pdf
-
-.mm.ps:
- -$(AM_V_GEN) $(GROFF) -Tps $(GROFF_FLAGS) $< 2> index.$@.raw > $@
- @if grep '^[^1-9.]' index.$@.raw | grep -v warning; then exit 1; \
- else test $$? -le 1; fi
-
-.mm.txt:
- $(AM_V_GEN) env GROFF_NO_SGR=TRUE $(GROFF) -Tutf8 $(GROFF_FLAGS) \
- $< 2> index.$@.raw > $@
-
-.mm.html:
- $(AM_V_GEN) $(GROFF) -Thtml $(GROFF_FLAGS) $< 2> index.$@.raw > $@
-
-.ps.pdf:
- $(AM_V_GEN) $(PS2PDF) $< $@
-
-endif BUILD_DOCS
+dist-hook: ChangeLog INSTALL