1# Id: Makefile.am,v 1.14 2004/08/26 11:43:18 karl Exp
2# Makefile.am for texinfo/util.
3# Run automake in .. to produce Makefile.in from this.
4#
5# This file is free software; as a special exception the author gives
6# unlimited permission to copy and/or distribute it, with or without
7# modifications, as long as this notice is preserved.
8#
9# This program is distributed in the hope that it will be useful, but
10# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
11# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13bin_PROGRAMS = ginstall-info texindex
14bin_SCRIPTS = texi2dvi texi2pdf
15
16# Use `ginstall-info' in the definition of PROGRAMS and in dependencies
17# because automake generates an install-info target in every Makefile (a
18# bug, IMHO, but this is easier than patching Automake.)
19ginstall_info_SOURCES = install-info.c
20
21# Transform `ginstall-info' to `install-info' before applying any
22# user-specified name transformations.
23transform = s/ginstall-info/install-info/; $(program_transform_name)
24
25localedir = $(datadir)/locale
26INCLUDES = -I$(top_srcdir)/lib -I../intl -DLOCALEDIR=\"$(localedir)\"
27LDADD = ../lib/libtxi.a $(LIBINTL)
28
29dist_pkgdata_DATA = texinfo.dtd texinfo.xsl
30pkgdata_DATA = texinfo.cat
31
32# we don't actually use version.texi in the rule, but it's one way of
33# noticing when the version changes.
34texinfo.cat: texinfo-cat.in $(top_srcdir)/doc/version.texi
35	sed 's/__VERSION__/@VERSION@/g' $(srcdir)/texinfo-cat.in >$@
36
37# Most of these are for fun.  The only official/installed ones are the
38# texi2* scripts.
39#
40EXTRA_DIST = README deref.c dir-example fix-info-dir fixfonts \
41  fixref.gawk gdoc gen-dir-node gendocs.sh gendocs_template infosrch \
42  install-info-html outline.gawk \
43  prepinfo.awk tex3patch texi-docstring-magic.el texi2dvi texi2pdf txitextest \
44  $(dist_pkgdata_DATA) texinfo-cat.in
45CLEANFILES = $(pkgdata_DATA)
46