summaryrefslogtreecommitdiff
path: root/util/Makefile.am
blob: fec2df92dbf8ad6de1344b425dc87e040840c0aa (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
# $Id: Makefile.am,v 1.34 2008/03/25 10:51:20 akim Exp $
# Makefile.am for texinfo/util.
# Run automake in .. to produce Makefile.in from this.
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bin_PROGRAMS = texindex
bin_SCRIPTS = texi2dvi texi2pdf pdftexi2dvi

# for auctex.
pdftexi2dvi: texi2pdf
	cp -f $(srcdir)/texi2pdf $@

localedir = $(datadir)/locale
AM_CPPFLAGS = 					\
  -I$(top_srcdir)				\
  -I$(top_srcdir)/gnulib/lib			\
  -I$(top_builddir)/gnulib/lib			\
  -DLOCALEDIR=\"$(localedir)\"
LDADD = ../lib/libtxi.a $(top_builddir)/gnulib/lib/libgnu.a $(LIBINTL)

dist_pkgdata_DATA = texinfo.dtd texinfo.xsl
pkgdata_DATA = texinfo.cat

# we don't actually use version.texi in the rule, but it's one way of
# noticing when the version changes.
texinfo.cat: texinfo-cat.in $(top_srcdir)/doc/version.texi
	sed 's/__VERSION__/@VERSION@/g' $(srcdir)/texinfo-cat.in >$@

# Most of these are for fun.  The only official/installed ones are the
# *texi2* scripts.
#
EXTRA_DIST = README deref.c dir-example fix-info-dir fixfonts \
  fixref.gawk gdoc gen-dir-node gendocs.sh gendocs_template infosrch \
  install-info-html outline.gawk pdftexi2dvi \
  prepinfo.awk tex3patch texi-docstring-magic.el texi2dvi texi2pdf txitextest \
  $(dist_pkgdata_DATA) texinfo-cat.in
CLEANFILES = $(pkgdata_DATA)


# Let's not stress people's TeX installations, etc.
if MAINTAINER_MODE
TESTS =						\
bibtex.test					\
dvipdf.test					\
latex2html.test					\
local.test					\
texi2dvi.test

EXTRA_DIST += $(TESTS)

# Each test case depends on defs.
check_SCRIPTS = defs
distclean-local:
	-rm -rf testSubDir
endif