source: trunk/essentials/sys-apps/texinfo/kNIX-bootstrap.kmk@ 3320

Last change on this file since 3320 was 3075, checked in by bird, 18 years ago

bootstrap config of texinfo.

  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# $Id: kNIX-bootstrap.kmk 3075 2007-04-09 01:06:20Z bird $
2## @file
3#
4# kNIX Boostrap Makefile for textinfo
5#
6# Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net>
7#
8#
9# This file is part of kLIBC.
10#
11# kLIBC is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# kLIBC is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with kLIBC; if not, write to the Free Software
23# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24#
25#
26
27DEPTH = ../../..
28include $(PATH_KBUILD)/header.kmk
29
30#
31# The texinfo template.
32#
33TEMPLATE_texinfo_EXTENDS = usr.bin
34TEMPLATE_texinfo_DEFS = $(TEMPLATE_usr.bin_DEFS) \
35 LOCALEDIR=\"/@unixroot/usr/share/locale\" \
36 INFODIR=\"/@unixroot/usr/info\" \
37 INFODIR2=\"/@unixroot/usr/share/info\" \
38 HAVE_CONFIG_H
39TEMPLATE_texinfo_INCS = $(TEMPLATE_usr.bin_INCS) \
40 $(PATH_TARGET) \
41 $(PATH_SUB_ROOT)/lib \
42 $(PATH_SUB_ROOT)/intl # needed ??
43TEMPLATE_texinfo_LIBS = $(TEMPLATE_usr.bin_LIBS) \
44 $(TARGET_libtxi)
45TEMPLATE_texinfo_ORDERDEPS = $(TEMPLATE_usr.bin_ORDERDEPS) \
46 $(PATH_TARGET)/config.h \
47 $(PATH_TARGET)/funs.h \
48
49#
50# libtxi
51#
52LIBRARIES += libtxi
53libtxi_TEMPLATE = texinfo
54libtxi_NOINST = true
55libtxi_SOURCES = \
56 lib/getopt.c \
57 lib/getopt1.c \
58 lib/substring.c \
59 lib/xexit.c \
60 lib/xmalloc.c \
61 lib/xstrdup.c \
62 lib/pc.c
63
64#
65# texinfo
66#
67PROGRAMS += info
68info_TEMPLATE = texinfo
69info_INCS = $(PATH_SUB_ROOT)/info
70info_LIBS = ncurses
71info_SOURCES = \
72 info/dir.c \
73 info/display.c \
74 info/dribble.c \
75 info/echo-area.c \
76 info/filesys.c \
77 info/footnotes.c\
78 info/gc.c \
79 info/indices.c \
80 info/info-utils.c \
81 info/info.c \
82 info/infodoc.c \
83 info/infomap.c \
84 info/m-x.c \
85 info/man.c \
86 info/nodemenu.c \
87 info/nodes.c \
88 info/search.c \
89 info/session.c \
90 info/signals.c \
91 info/terminal.c \
92 info/tilde.c \
93 info/variables.c \
94 info/window.c \
95 $(PATH_TARGET)/doc.c
96
97#
98# infokey
99#
100PROGRAMS += infokey
101infokey_TEMPLATE = texinfo
102infokey_INCS = $(PATH_SUB_ROOT)/info
103infokey_SOURCES = \
104 info/infokey.c \
105 $(PATH_TARGET)/key.c
106
107
108#
109# makeinfo
110#
111PROGRAMS += makeinfo
112makeinfo_TEMPLATE = texinfo
113makeinfo_INCS = $(PATH_SUB_ROOT)/makeinfo
114makeinfo_SOURCES = \
115 makeinfo/cmds.c \
116 makeinfo/defun.c \
117 makeinfo/files.c \
118 makeinfo/float.c \
119 makeinfo/footnote.c \
120 makeinfo/html.c \
121 makeinfo/index.c \
122 makeinfo/insertion.c \
123 makeinfo/lang.c \
124 makeinfo/macro.c \
125 makeinfo/makeinfo.c \
126 makeinfo/multi.c \
127 makeinfo/node.c \
128 makeinfo/sectioning.c \
129 makeinfo/toc.c \
130 makeinfo/xml.c \
131 makeinfo/xref.c
132
133#
134# install-info
135#
136PROGRAMS += install-info
137install-info_TEMPLATE = texinfo
138install-info_INCS = $(PATH_SUB_ROOT)/util
139install-info_SOURCES = \
140 util/install-info.c
141
142#
143# texindex
144#
145PROGRAMS += texindex
146texindex_TEMPLATE = texinfo
147texindex_INCS = $(PATH_SUB_ROOT)/util
148texindex_SOURCES = \
149 util/texindex.c
150
151#
152# scripts
153#
154INSTALLS += texinfo-scripts
155texinfo-scripts_TEMPLATE = usr.bin
156texinfo-scripts_SOURCES = \
157 util/texi2dvi \
158 util/texi2pdf \
159
160#
161# config.h, funs.h and doc.c
162#
163$(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h
164 $(INSTALL) $< $@
165$(PATH_TARGET)/funs.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-funs.h
166 $(INSTALL) $< $@
167$(PATH_TARGET)/doc.c: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-doc.c
168 $(INSTALL) $< $@
169$(PATH_TARGET)/key.c: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-key.c
170 $(INSTALL) $< $@
171
172include $(PATH_KBUILD)/footer.kmk
173
Note: See TracBrowser for help on using the repository browser.