# makefile for Gambit-C documentation.
# Copyright (C) 1994-2006 by Marc Feeley, All Rights Reserved.
herefromroot = doc
rootfromhere = ..
SUBDIRS =
PACKAGE_SHORTNAME = gambc
PACKAGE_NAME = Gambit-C
PACKAGE_VERSION = 4.0b20
PACKAGE_STRING = Gambit-C 4.0b20
PACKAGE_BUGREPORT = gambit@iro.umontreal.ca
PACKAGE_TARNAME = gambc-4.0b20
PACKAGE_SUBDIR =
srcdir = .
srcdirpfx =
C_COMPILER = cc
C_PREPROC = cc -E
FLAGS_OBJ = -fno-common -O1
FLAGS_DYN = -O1 -shared
FLAGS_LIB = -shared
FLAGS_EXE =
DEFS = -DHAVE_CONFIG_H
LIBS =
GAMBCLIB = libgambc.a
INSTALL = $(rootfromhere)/install-sh -c
INSTALL_DATA = $(rootfromhere)/install-sh -c -m 644
INSTALL_LIB = $(rootfromhere)/install-sh -c -m 644
INSTALL_PROGRAM = $(rootfromhere)/install-sh -c -m 755
LN_S = ln -s
RANLIB = ranlib
prefix =
exec_prefix = ${prefix}
includedir = $(prefix)$(PACKAGE_SUBDIR)/include
libdir = $(prefix)$(PACKAGE_SUBDIR)/lib
bindir = $(prefix)$(PACKAGE_SUBDIR)/bin
docdir = $(prefix)$(PACKAGE_SUBDIR)/doc
infodir = $(prefix)$(PACKAGE_SUBDIR)/info
emacsdir = $(prefix)$(PACKAGE_SUBDIR)/share/emacs/site-lisp
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
TEXI2HTML = texi2html
.SUFFIXES:
DISTFILES = makefile.in \
gambit-c.txi texinfo.tex texi2html stamp.vti version.txi \
gambit-c.pdf gambit-c.html gambit-c.txt \
gambit-c.info gambit-c.info-1 gambit-c.info-2 gambit-c.info-3 \
checkdoc.scm gambcini.scm square.scm bench.scm \
m1.c m2.scm m3.scm m4.scm m5.scm m6.scm m7.scm x.c x.h h.scm w.six \
test1.scm test2.scm test3.scm
all: all-recursive all-local
all-local:
doc: info pdf html txt
checkdoc:
rm -f *.o[123456789]* fifo
rm -rf newdir
$(rootfromhere)/gsi/gsi checkdoc.scm
diff gambit-c.txi gambit-c.txi-correct
info: gambit-c.info
gambit-c.info: gambit-c.txi version.txi
cd $(srcdir) && $(MAKEINFO) gambit-c.txi
pdf: gambit-c.pdf
ps: gambit-c.pdf
pdf2ps gambit-c.pdf
gambit-c.pdf: gambit-c.txi version.txi
cd $(srcdir) && $(TEXI2DVI) -p gambit-c.txi
html: gambit-c.html
gambit-c.html: gambit-c.txi
cd $(srcdir) && $(TEXI2HTML) gambit-c.txi
txt: gambit-c.txt
gambit-c.txt: gambit-c.txi
cd $(srcdir) && $(MAKEINFO) --no-split --no-headers --output gambit-c.txt gambit-c.txi
version.txi: stamp.vti
stamp.vti: gambit-c.txi $(rootfromhere)/configure.ac
echo "@set EDITION $(PACKAGE_VERSION)" > version.tmp
echo "@set UPDATED `date -r $(srcdirpfx)gambit-c.txi '+%B %Y'`" \
>> version.tmp
echo "@set VERSION $(PACKAGE_VERSION)" >> version.tmp
if cmp -s version.tmp $(srcdirpfx)version.txi; then rm -f version.tmp; \
else mv version.tmp $(srcdirpfx)version.txi; fi
date > $(srcdirpfx)stamp.vti
install-local: all doc
$(srcdirpfx)$(rootfromhere)/mkidirs $(docdir) $(infodir)
$(INSTALL_DATA) gambit-c.pdf $(docdir)/gambit-c.pdf
$(INSTALL_DATA) gambit-c.txt $(docdir)/gambit-c.txt
$(INSTALL_DATA) gambit-c.html $(docdir)/gambit-c.html
cd $(srcdir) && for file in gambit-c.info*; do \
$(INSTALL_DATA) $$file $(infodir)/$$file; \
done
uninstall-local:
rm -f $(infodir)/gambit-c.info*
mostlyclean-local:
rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.log *.pg *.toc *.tp *.vr
rm -f *.tmp
clean-local: mostlyclean-local
distclean-local: clean-local
rm -f makefile
realclean-local: distclean-local
rm -f stamp.vti version.txi gambit-c.info* gambit-c.pdf gambit-c.txt gambit-c.txt
all-recursive install-recursive uninstall-recursive mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive:
@if test -n "$(SUBDIRS)"; then \
for subdir in ""$(SUBDIRS); do \
target=`echo $@ | sed 's/-recursive//'`; \
echo making $$target in $$subdir; \
(cd $$subdir && $(MAKE) $$target) || exit 1; \
done \
fi
install: install-recursive install-local
uninstall: uninstall-recursive uninstall-local
mostlyclean: mostlyclean-recursive mostlyclean-local
clean: clean-recursive clean-local
distclean: distclean-recursive distclean-local
realclean: realclean-recursive realclean-local
dist:
@if test -n "$(SUBDIRS)"; then \
for subdir in ""$(SUBDIRS); do \
echo making $@ in $$subdir; \
mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)/$$subdir; \
chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)/$$subdir; \
(cd $$subdir && $(MAKE) $(MDEFINES) $@) || exit 1; \
done \
fi
@echo "Copying distribution files"
@for file in $(DISTFILES); do \
ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \
|| cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \
done
makefile: makefile.in $(rootfromhere)/config.status
cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status
# Tell versions [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
syntax highlighted by Code2HTML, v. 0.9.1