Change the way top-level dir info files are handled.

(TOP_FILES): Variable removed.
(.SUFFIXES): Removed.
(prefix, infodir): New variables.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@441 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1995-06-20 16:24:02 +00:00
parent 78aa008cc5
commit 475b6ad3bc

View file

@ -27,16 +27,17 @@ SHELL = /bin/sh
srcdir = @srcdir@ srcdir = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
# Installation location
prefix = @prefix@
infodir = $(prefix)/info
MAKEINFO = makeinfo MAKEINFO = makeinfo
TEXI2DVI = texi2dvi TEXI2DVI = texi2dvi
#### End of system configuration section. #### #### End of system configuration section. ####
.SUFFIXES: .m include $(srcdir)/../Makeconf
.m.o: include $(srcdir)/../Version
$(CC) -c $(ALL_CPPFLAGS) $(DEFS) $(ALL_OBJCFLAGS) $< -o $*.o
.c.o:
$(CC) -c $(ALL_CPPFLAGS) $(DEFS) $(ALL_CFLAGS) $< -o $*.o
TEXI_FILES = \ TEXI_FILES = \
advertisement.texi \ advertisement.texi \
@ -46,18 +47,26 @@ libobjects.texi \
news.texi \ news.texi \
objective-c.texi \ objective-c.texi \
readme.texi \ readme.texi \
todo.texi \ todo.texi
version.texi
all: info
all:
info: libobjects.info objective-c.info \ info: libobjects.info objective-c.info \
../TODO ../INSTALL ../NEWS ../README ../ANNOUNCE ../ADVERTISEMENT TODO INSTALL NEWS README ANNOUNCE ADVERTISEMENT
dvi: libobjects.dvi objective-c.dvi dvi: libobjects.dvi objective-c.dvi
version.texi: ../Makefile.in version.texi: $(srcdir)/../Version
cd ..; $(MAKE) doc/version.texi 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 libobjects.dvi: libobjects.texi version.texi
$(TEXI2DVI) $(srcdir)/libobjects.texi $(TEXI2DVI) $(srcdir)/libobjects.texi
@ -66,29 +75,35 @@ objective-c.dvi: objective-c.texi
libobjects.info: libobjects.texi todo.texi version.texi libobjects.info: libobjects.texi todo.texi version.texi
@echo Sorry, makeinfo does not yet support Objective C documentation. @echo Sorry, makeinfo does not yet support Objective C documentation.
:$(MAKEINFO) $(srcdir)/libobjects.texi
objective-c.info: objective-c.texi objective-c.info: objective-c.texi
$(MAKEINFO) $(srcdir)/objective-c.texi $(MAKEINFO) $(srcdir)/objective-c.texi
../TODO: todo.texi version.texi TODO: todo.texi version.texi
$(MAKEINFO) -o ../TODO -D TODO_ONLY \ $(MAKEINFO) -o TODO -D TODO_ONLY \
--no-header --no-split $(srcdir)/todo.texi --no-header --no-split $(srcdir)/todo.texi
../INSTALL: install.texi version.texi INSTALL: install.texi version.texi
$(MAKEINFO) -o ../INSTALL -D INSTALL_ONLY \ $(MAKEINFO) -o INSTALL -D INSTALL_ONLY \
--no-header --no-split $(srcdir)/install.texi --no-header --no-split $(srcdir)/install.texi
../README: readme.texi version.texi README: readme.texi version.texi
$(MAKEINFO) -o ../README -D README_ONLY \ $(MAKEINFO) -o README -D README_ONLY \
--no-header --no-split $(srcdir)/readme.texi --no-header --no-split $(srcdir)/readme.texi
../ANNOUNCE: announce.texi version.texi news.texi ANNOUNCE: announce.texi version.texi news.texi
$(MAKEINFO) -o ../ANNOUNCE -D ANNOUNCE_ONLY \ $(MAKEINFO) -o ANNOUNCE -D ANNOUNCE_ONLY \
--no-header --no-split $(srcdir)/announce.texi --no-header --no-split $(srcdir)/announce.texi
../NEWS: news.texi version.texi NEWS: news.texi version.texi
$(MAKEINFO) -o ../NEWS -D NEWS_ONLY \ $(MAKEINFO) -o NEWS -D NEWS_ONLY \
--no-header --no-split $(srcdir)/news.texi --no-header --no-split $(srcdir)/news.texi
../ADVERTISEMENT: advertisement.texi version.texi ADVERTISEMENT: advertisement.texi version.texi
$(MAKEINFO) -o ../ADVERTISEMENT -D ADVERTISEMENT_ONLY \ $(MAKEINFO) -o ADVERTISEMENT -D ADVERTISEMENT_ONLY \
--no-header --no-split $(srcdir)/advertisement.texi --no-header --no-split $(srcdir)/advertisement.texi
DISTFILES = $(TEXI_FILES) Makefile.in texinfo.tex TOP_DOC_FILES = README TODO INSTALL NEWS
RCS_FILES = $(TEXI_FILES) Makefile.in
DIST_FILES = $(RCS_FILES) texinfo.tex version.texi \
$(TOP_DOC_FILES) ANNOUNCE ADVERTISEMENT
# In the future we'll want to install libobjects.info and objective-c.info.
install:
uninstall:
mostlyclean: mostlyclean:
rm -f *~ rm -f *~
@ -108,12 +123,10 @@ realclean: distclean
rm -f libobjects.info version.texi \ rm -f libobjects.info version.texi \
README TODO INSTALL NEWS ANNOUNCE README TODO INSTALL NEWS ANNOUNCE
TOP_FILES = ../TODO ../INSTALL ../README ../ANNOUNCE ../NEWS ../ADVERTISEMENT copy-dist: $(DIST_FILES)
mkdir ../snap/doc
copy-dist: $(DISTFILES) $(TOP_FILES) ln $(DIST_FILES) ../snap/doc
mkdir $(srcdir)/../`cat $(srcdir)/../.fname`/doc ln $(TOP_DOC_FILES) ../snap
ln $(DISTFILES) $(srcdir)/../`cat $(srcdir)/../.fname`/doc
ln $(TOP_FILES) $(srcdir)/../`cat $(srcdir)/../.fname`
Makefile: Makefile.in Makefile: Makefile.in
cd $(srcdir)/..; $(SHELL) config.status cd ..; $(SHELL) config.status