1
# $Id: Makefile.am,v 1.8 2004/10/28 14:03:27 karl Exp $
1
2
# Makefile.am for texinfo/info.
2
# $Id: Makefile.am,v 1.22 2002/02/25 16:22:44 karl Exp $
3
3
# Run automake in .. to produce Makefile.in from this.
5
noinst_PROGRAMS = makedoc
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.
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.
7
13
# Use `ginfo' for building to avoid confusion with the standard `info'
8
14
# target. Removes the `g' in the install rule before applying any
9
15
# user-specified name transformations.
10
16
bin_PROGRAMS = ginfo infokey
11
transform = s/ginfo/info/; @program_transform_name@
17
transform = s/ginfo/info/; $(program_transform_name)
13
19
localedir = $(datadir)/locale
20
infodir2 = $(datadir)/info
16
23
# Automake puts -I.. and -I$(srcdir) into DEFS by default, but
17
24
# we need to override it, so include them ourselves.
18
25
INCLUDES = -I. -I$(top_srcdir)/lib -I../intl -I.. -I$(srcdir)
19
DEFS = -DINFODIR=\"$(infodir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@
20
LDADD = ../lib/libtxi.a @TERMLIBS@ @LIBINTL@
26
DEFS += -DLOCALEDIR=\"$(localedir)\" -DINFODIR=\"$(infodir)\" \
27
-DINFODIR2=\"$(infodir2)\"
28
LDADD = ../lib/libtxi.a $(TERMLIBS) $(LIBINTL)
22
30
EXTRA_DIST = README pcterm.c
24
# The files `doc.c' and `funs.h' are created by ./makedoc run over the source
25
# files which contain DECLARE_INFO_COMMAND. `funs.h' is a header file
26
# listing the functions found. `doc.c' is a structure containing pointers
27
# to those functions along with completable names and documentation strings.
28
BUILT_SOURCES = doc.c funs.h key.c
30
makedoc_SOURCES = makedoc.c
31
32
ginfo_SOURCES = dir.c display.c display.h doc.h dribble.c dribble.h \
32
33
echo-area.c echo-area.h \
33
34
filesys.c filesys.h footnotes.c footnotes.h gc.c gc.h \
35
36
infomap.c infomap.h m-x.c man.c man.h nodemenu.c nodes.c nodes.h \
36
37
search.c search.h session.c session.h signals.c signals.h \
37
38
termdep.h terminal.c terminal.h tilde.c tilde.h \
38
variables.c variables.h window.c window.h $(BUILT_SOURCES)
39
infokey_SOURCES = infokey.c infokey.h key.c key.h
39
variables.c variables.h window.c window.h
40
nodist_ginfo_SOURCES = doc.c funs.h
41
infokey_SOURCES = infokey.c infokey.h key.h
42
nodist_infokey_SOURCES = key.c funs.h
44
# The files `doc.c', `key.c' and `funs.h' are created by ./makedoc run over the
45
# source files which contain DECLARE_INFO_COMMAND. `funs.h' is a header file
46
# listing the functions found. `doc.c' is a structure containing pointers
47
# to those functions along with completable names and documentation strings.
49
generated_sources = doc.c key.c funs.h
51
# We need a linear ordering to prevent race condition in parallel make.
52
# See the node ``(automake)Multiple Outputs'' for an explanation.
56
# These files are not distributed.
57
DISTCLEANFILES = $(generated_sources)
59
noinst_PROGRAMS = makedoc
60
makedoc_SOURCES = makedoc.c
41
62
# Files with Info commands defined that makedoc should read.
42
63
cmd_sources = $(srcdir)/session.c $(srcdir)/echo-area.c $(srcdir)/infodoc.c \
44
65
$(srcdir)/footnotes.c $(srcdir)/variables.c
46
67
# The $(EXEEXT) should be added by Automake, but isn't. Fine.
47
$(BUILT_SOURCES): makedoc$(EXEEXT) $(cmd_sources)
48
# This is insufficient. We really need them not to be in the
49
# distribution in the first place, but it seems Automake does not
50
# currently allow that.
51
rm -f $(BUILT_SOURCES)
52
./makedoc $(cmd_sources)
68
$(generated_sources): makedoc$(EXEEXT) $(cmd_sources)
69
rm -f $(generated_sources)
70
$(top_builddir)/$(native_tools)/info/makedoc $(cmd_sources)
72
# The following hack is necessary to hint make before the automatic
73
# dependencies are built.
74
BUILT_SOURCES = funs.h