mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
(GNUstep-FAQ): Rules modified to handle @email{} and @url{}. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1146 72102866-910b-0410-8b05-ffd578937521
172 lines
5.4 KiB
Makefile
172 lines
5.4 KiB
Makefile
#
|
|
# Documentation makefile for Objective-C Class Library
|
|
# Copyright (C) 1995, 1996 Free Software Foundation, Inc.
|
|
#
|
|
# Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
|
#
|
|
# This file is part of the GNU Objective-C Class Library.
|
|
#
|
|
# This library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Library General Public
|
|
# License as published by the Free Software Foundation; either
|
|
# version 2 of the License, or (at your option) any later version.
|
|
#
|
|
# This library 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
|
|
# Library General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Library General Public
|
|
# License along with this library; if not, write to the Free
|
|
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
SHELL = /bin/sh
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
# Installation location
|
|
prefix = @prefix@
|
|
infodir = $(prefix)/info
|
|
|
|
MAKEINFO = makeinfo
|
|
TEXI2DVI = texi2dvi
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
include $(srcdir)/../Makeconf
|
|
include $(srcdir)/../Version
|
|
|
|
TEXI_FILES = \
|
|
advertisement.texi \
|
|
announce.texi \
|
|
install.texi \
|
|
libobjects.texi \
|
|
news.texi \
|
|
objective-c.texi \
|
|
readme.texi \
|
|
todo.texi \
|
|
machines.texi \
|
|
gnustep-faq.texi \
|
|
faq.texi
|
|
|
|
TEXT_FILES = \
|
|
TODO INSTALL NEWS README ANNOUNCE ADVERTISEMENT
|
|
|
|
all:
|
|
|
|
info: $(TEXT_FILES)
|
|
dvi: libobjects.dvi objective-c.dvi
|
|
|
|
version.texi: $(srcdir)/../Version
|
|
rm -f version.texi
|
|
echo '@set OBJECTS_VERSION' $(OBJECTS_VERSION) \
|
|
> version.texi
|
|
echo '@set OBJECTS_GCC_VERSION' $(OBJECTS_GCC_VERSION) \
|
|
>> version.texi
|
|
if [ $(OBJECTS_FTP_MACHINE) ]; then \
|
|
echo '@set OBJECTS_FTP_MACHINE' $(OBJECTS_FTP_MACHINE) \
|
|
>> version.texi; fi
|
|
if [ $(OBJECTS_FTP_DIRECTORY) ]; then \
|
|
echo '@set OBJECTS_FTP_DIRECTORY' $(OBJECTS_FTP_DIRECTORY) \
|
|
>> version.texi; fi
|
|
|
|
libobjects.dvi: libobjects.texi version.texi
|
|
$(TEXI2DVI) $(srcdir)/libobjects.texi
|
|
objective-c.dvi: objective-c.texi
|
|
$(TEXI2DVI) $(srcdir)/objective-c.texi
|
|
|
|
MAKEINFO_FLAGS = -I $(srcdir)
|
|
|
|
libobjects.info: libobjects.texi todo.texi version.texi
|
|
@echo Sorry, makeinfo does not yet support Objective C documentation.
|
|
:$(MAKEINFO) $(MAKEINFO_FLAGS) $(srcdir)/libobjects.texi
|
|
objective-c.info: objective-c.texi
|
|
@echo Sorry, makeinfo does not yet support Objective C documentation.
|
|
:$(MAKEINFO) $(MAKEINFO_FLAGS) $(srcdir)/objective-c.texi
|
|
TODO: todo.texi version.texi
|
|
$(MAKEINFO) $(MAKEINFO_FLAGS) -o TODO -D TODO_ONLY \
|
|
--no-header --no-split $(srcdir)/todo.texi
|
|
INSTALL: install.texi version.texi
|
|
$(MAKEINFO) $(MAKEINFO_FLAGS) -o INSTALL -D INSTALL_ONLY \
|
|
--no-header --no-split $(srcdir)/install.texi
|
|
README: readme.texi version.texi
|
|
$(MAKEINFO) $(MAKEINFO_FLAGS) -o README -D README_ONLY \
|
|
--no-header --no-split $(srcdir)/readme.texi
|
|
ANNOUNCE: announce.texi version.texi news.texi
|
|
$(MAKEINFO) $(MAKEINFO_FLAGS) -o ANNOUNCE -D ANNOUNCE_ONLY \
|
|
--no-header --no-split $(srcdir)/announce.texi
|
|
NEWS: news.texi version.texi
|
|
$(MAKEINFO) $(MAKEINFO_FLAGS) -o NEWS -D NEWS_ONLY \
|
|
--no-header --no-split $(srcdir)/news.texi
|
|
ADVERTISEMENT: advertisement.texi version.texi
|
|
$(MAKEINFO) $(MAKEINFO_FLAGS) -o ADVERTISEMENT -D ADVERTISEMENT_ONLY \
|
|
--no-header --no-split $(srcdir)/advertisement.texi
|
|
|
|
# Make substitutions for @email{} and @url{} before passing to makeinfo.
|
|
# These substitution scripts could be cleaned up.
|
|
GNUstep-FAQ: gnustep-faq.texi version.texi
|
|
rm -f GNUstep-FAQ.texi
|
|
sed -e 's,@email{\([^}]*\)},<\1>,g' \
|
|
$(srcdir)/gnustep-faq.texi \
|
|
| sed -e 's,@url{\([^}]*\)},@samp{\1},g' \
|
|
> GNUstep-FAQ.texi
|
|
$(MAKEINFO) $(MAKEINFO_FLAGS) -o $@ \
|
|
--no-header --no-split GNUstep-FAQ.texi
|
|
rm -f GNUstep-FAQ.texi
|
|
# Make substitutions for @email{} and @url{}, and add @br{} before @item
|
|
# before passing to texi2html. Note: I think that this `@br{}' should
|
|
# actually be a `@br', but the extra `{}' is necessary to work around a
|
|
# bug in texi@html.
|
|
# These substitution scripts could be cleaned up.
|
|
GNUstep-FAQ.html: gnustep-faq.texi version.texi
|
|
rm -f GNUstep-FAQ.texi
|
|
sed -e 's,@email{\([^}]*\)},<A HREF="mailto:\1">\1</A>,g' \
|
|
$(srcdir)/gnustep-faq.texi \
|
|
| sed -e 's,@url{\([^}]*\)},<A HREF="\1">\1</A>,g' \
|
|
| sed -e 's,^ *$$,@br{},g' \
|
|
> GNUstep-FAQ.texi
|
|
texi2html -expandinfo $(MAKEINFO_FLAGS) GNUstep-FAQ.texi
|
|
|
|
# | awk -- '/@item/ { print "@br{}" } /@end itemize/ { print "@br{}" } ; { print }' \
|
|
|
|
<A HREF="http://www.cl.cam.ac.uk/texinfodoc/dir.html">GNU "info" manuals</A>
|
|
|
|
TOP_DOC_FILES = README INSTALL NEWS
|
|
RCS_FILES = $(TEXI_FILES) Makefile.in
|
|
DIST_FILES = $(RCS_FILES) texinfo.tex \
|
|
$(TOP_DOC_FILES) ANNOUNCE ADVERTISEMENT TODO
|
|
|
|
# In the future we'll want to install libobjects.info and objective-c.info.
|
|
install:
|
|
uninstall:
|
|
|
|
mostlyclean:
|
|
rm -f *~
|
|
|
|
clean: mostlyclean
|
|
rm -f version.texi
|
|
rm -f $(TEXT_FILES)
|
|
rm -f *.info
|
|
rm -f libobjects.dvi libobjects.aux libobjects.log \
|
|
libobjects.toc libobjects.cl \
|
|
libobjects.cp libobjects.cps libobjects.fn libobjects.fns \
|
|
libobjects.ky libobjects.pg libobjects.pr libobjects.tp \
|
|
libobjects.vr
|
|
|
|
distclean: clean
|
|
rm -f Makefile
|
|
|
|
realclean: distclean
|
|
rm -f libobjects.info version.texi \
|
|
README TODO INSTALL NEWS ANNOUNCE
|
|
|
|
copy-dist: $(DIST_FILES)
|
|
mkdir ../snap/doc
|
|
ln $(DIST_FILES) ../snap/doc
|
|
ln $(TOP_DOC_FILES) ../snap
|
|
|
|
Makefile: Makefile.in
|
|
cd ..; $(SHELL) config.status
|