# $Id$ ## @file # # kNIX Boostrap Makefile for textinfo # # Copyright (c) 2007 knut st. osmundsen # # # This file is part of kLIBC. # # kLIBC is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # kLIBC is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with kLIBC; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # DEPTH = ../../.. include $(PATH_KBUILD)/header.kmk # # The texinfo template. # TEMPLATE_texinfo = texinfo template TEMPLATE_texinfo_EXTENDS = usr.bin TEMPLATE_texinfo_DEFS = $(TEMPLATE_usr.bin_DEFS) \ LOCALEDIR=\"/@unixroot/usr/share/locale\" \ INFODIR=\"/@unixroot/usr/info\" \ INFODIR2=\"/@unixroot/usr/share/info\" \ HAVE_CONFIG_H TEMPLATE_texinfo_INCS = $(TEMPLATE_usr.bin_INCS) \ $(PATH_TARGET) \ $(PATH_SUB_ROOT)/lib \ $(PATH_SUB_ROOT)/intl # needed ?? TEMPLATE_texinfo_LIBS = $(TEMPLATE_usr.bin_LIBS) \ $(TARGET_libtxi) TEMPLATE_texinfo_ORDERDEPS = $(TEMPLATE_usr.bin_ORDERDEPS) \ $(PATH_TARGET)/config.h \ $(PATH_TARGET)/funs.h \ # # libtxi # LIBRARIES += libtxi libtxi_TEMPLATE = texinfo libtxi_NOINST = true libtxi_SOURCES = \ lib/getopt.c \ lib/getopt1.c \ lib/substring.c \ lib/xexit.c \ lib/xmalloc.c \ lib/xstrdup.c \ lib/pc.c # # texinfo # PROGRAMS += info info_TEMPLATE = texinfo info_INCS = $(PATH_SUB_ROOT)/info info_LIBS = ncurses info_SOURCES = \ info/dir.c \ info/display.c \ info/dribble.c \ info/echo-area.c \ info/filesys.c \ info/footnotes.c\ info/gc.c \ info/indices.c \ info/info-utils.c \ info/info.c \ info/infodoc.c \ info/infomap.c \ info/m-x.c \ info/man.c \ info/nodemenu.c \ info/nodes.c \ info/search.c \ info/session.c \ info/signals.c \ info/terminal.c \ info/tilde.c \ info/variables.c \ info/window.c \ $(PATH_TARGET)/doc.c # # infokey # PROGRAMS += infokey infokey_TEMPLATE = texinfo infokey_INCS = $(PATH_SUB_ROOT)/info infokey_SOURCES = \ info/infokey.c \ $(PATH_TARGET)/key.c # # makeinfo # PROGRAMS += makeinfo makeinfo_TEMPLATE = texinfo makeinfo_INCS = $(PATH_SUB_ROOT)/makeinfo makeinfo_SOURCES = \ makeinfo/cmds.c \ makeinfo/defun.c \ makeinfo/files.c \ makeinfo/float.c \ makeinfo/footnote.c \ makeinfo/html.c \ makeinfo/index.c \ makeinfo/insertion.c \ makeinfo/lang.c \ makeinfo/macro.c \ makeinfo/makeinfo.c \ makeinfo/multi.c \ makeinfo/node.c \ makeinfo/sectioning.c \ makeinfo/toc.c \ makeinfo/xml.c \ makeinfo/xref.c # # install-info # PROGRAMS += install-info install-info_TEMPLATE = texinfo install-info_INCS = $(PATH_SUB_ROOT)/util install-info_SOURCES = \ util/install-info.c # # texindex # PROGRAMS += texindex texindex_TEMPLATE = texinfo texindex_INCS = $(PATH_SUB_ROOT)/util texindex_SOURCES = \ util/texindex.c # # scripts # INSTALLS += texinfo-scripts texinfo-scripts_TEMPLATE = usr.bin texinfo-scripts_SOURCES = \ util/texi2dvi \ util/texi2pdf \ # # config.h, funs.h and doc.c # $(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h $(INSTALL) $< $@ $(PATH_TARGET)/funs.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-funs.h $(INSTALL) $< $@ $(PATH_TARGET)/doc.c: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-doc.c $(INSTALL) $< $@ $(PATH_TARGET)/key.c: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-key.c $(INSTALL) $< $@ include $(PATH_KBUILD)/footer.kmk