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

Last change on this file since 3620 was 3620, checked in by bird, 17 years ago

Missing template.

  • Property svn:keywords set to Id
File size: 3.9 KB
Line 
1# $Id: kNIX-bootstrap.kmk 3620 2008-04-25 03:07:35Z 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 = texinfo template
34TEMPLATE_texinfo_EXTENDS = usr.bin
35TEMPLATE_texinfo_DEFS = $(TEMPLATE_usr.bin_DEFS) \
36 LOCALEDIR=\"/@unixroot/usr/share/locale\" \
37 INFODIR=\"/@unixroot/usr/info\" \
38 INFODIR2=\"/@unixroot/usr/share/info\" \
39 HAVE_CONFIG_H
40TEMPLATE_texinfo_INCS = $(TEMPLATE_usr.bin_INCS) \
41 $(PATH_TARGET) \
42 $(PATH_SUB_ROOT)/lib \
43 $(PATH_SUB_ROOT)/intl # needed ??
44TEMPLATE_texinfo_LIBS = $(TEMPLATE_usr.bin_LIBS) \
45 $(TARGET_libtxi)
46TEMPLATE_texinfo_ORDERDEPS = $(TEMPLATE_usr.bin_ORDERDEPS) \
47 $(PATH_TARGET)/config.h \
48 $(PATH_TARGET)/funs.h \
49
50#
51# libtxi
52#
53LIBRARIES += libtxi
54libtxi_TEMPLATE = texinfo
55libtxi_NOINST = true
56libtxi_SOURCES = \
57 lib/getopt.c \
58 lib/getopt1.c \
59 lib/substring.c \
60 lib/xexit.c \
61 lib/xmalloc.c \
62 lib/xstrdup.c \
63 lib/pc.c
64
65#
66# texinfo
67#
68PROGRAMS += info
69info_TEMPLATE = texinfo
70info_INCS = $(PATH_SUB_ROOT)/info
71info_LIBS = ncurses
72info_SOURCES = \
73 info/dir.c \
74 info/display.c \
75 info/dribble.c \
76 info/echo-area.c \
77 info/filesys.c \
78 info/footnotes.c\
79 info/gc.c \
80 info/indices.c \
81 info/info-utils.c \
82 info/info.c \
83 info/infodoc.c \
84 info/infomap.c \
85 info/m-x.c \
86 info/man.c \
87 info/nodemenu.c \
88 info/nodes.c \
89 info/search.c \
90 info/session.c \
91 info/signals.c \
92 info/terminal.c \
93 info/tilde.c \
94 info/variables.c \
95 info/window.c \
96 $(PATH_TARGET)/doc.c
97
98#
99# infokey
100#
101PROGRAMS += infokey
102infokey_TEMPLATE = texinfo
103infokey_INCS = $(PATH_SUB_ROOT)/info
104infokey_SOURCES = \
105 info/infokey.c \
106 $(PATH_TARGET)/key.c
107
108
109#
110# makeinfo
111#
112PROGRAMS += makeinfo
113makeinfo_TEMPLATE = texinfo
114makeinfo_INCS = $(PATH_SUB_ROOT)/makeinfo
115makeinfo_SOURCES = \
116 makeinfo/cmds.c \
117 makeinfo/defun.c \
118 makeinfo/files.c \
119 makeinfo/float.c \
120 makeinfo/footnote.c \
121 makeinfo/html.c \
122 makeinfo/index.c \
123 makeinfo/insertion.c \
124 makeinfo/lang.c \
125 makeinfo/macro.c \
126 makeinfo/makeinfo.c \
127 makeinfo/multi.c \
128 makeinfo/node.c \
129 makeinfo/sectioning.c \
130 makeinfo/toc.c \
131 makeinfo/xml.c \
132 makeinfo/xref.c
133
134#
135# install-info
136#
137PROGRAMS += install-info
138install-info_TEMPLATE = texinfo
139install-info_INCS = $(PATH_SUB_ROOT)/util
140install-info_SOURCES = \
141 util/install-info.c
142
143#
144# texindex
145#
146PROGRAMS += texindex
147texindex_TEMPLATE = texinfo
148texindex_INCS = $(PATH_SUB_ROOT)/util
149texindex_SOURCES = \
150 util/texindex.c
151
152#
153# scripts
154#
155INSTALLS += texinfo-scripts
156texinfo-scripts_TEMPLATE = usr.bin
157texinfo-scripts_SOURCES = \
158 util/texi2dvi \
159 util/texi2pdf \
160
161#
162# config.h, funs.h and doc.c
163#
164$(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h
165 $(INSTALL) $< $@
166$(PATH_TARGET)/funs.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-funs.h
167 $(INSTALL) $< $@
168$(PATH_TARGET)/doc.c: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-doc.c
169 $(INSTALL) $< $@
170$(PATH_TARGET)/key.c: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-key.c
171 $(INSTALL) $< $@
172
173include $(PATH_KBUILD)/footer.kmk
174
Note: See TracBrowser for help on using the repository browser.