1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
# Makefile for zgv docs
#
# Only info version is made by default, do `make dvi' to make a .dvi
# file.
# This gets definitions for INFODIR, MANDIR, etc.
include ../config.mk
all: info man
info: zgv
dvi: zgv.dvi
zgv: zgv.texi
makeinfo zgv.texi
# `-c' removes the huge number of associated files created by TeX.
# This saves doing a `make clean' from hell. :-)
zgv.dvi: zgv.texi
@echo "=== NB: If you don't want A4 paper, edit config.mk! ==="
texi2dvi -c $(USE_A4_DEF) zgv.texi
# This explicitly mentions `gawk' because makeman requires it
# (and can't easily be made not to, since it really does need gensub).
# To avoid problems on gawkless systems, a prebuilt zgv.1 is included
# in the source tgz.
#
man: zgv.1
zgv.1: zgv.texi makeman.awk
@echo 'Making man page from zgv.texi...'
gawk -f makeman.awk <zgv.texi >zgv.1
# I think this one's getting just a tiny bit confusing :-}
#
ifeq ($(INFO_DIR_UPDATE),no)
install:
else
install: ../src/install-info
endif
install -m 644 zgv.1 $(MANDIR)
install -m 644 zgv zgv-? $(INFODIR)
# Update info `dir' file.
# Info always uses a dir file in preference to a dir.gz, so we don't use
# dir.gz unless it's the only game in town.
ifneq ($(INFO_DIR_UPDATE),no)
if [ -f $(INFODIR)/dir.gz -a ! -f $(INFODIR)/dir ]; then \
gzip -d $(INFODIR)/dir.gz; \
../src/install-info zgv $(INFODIR)/dir; \
gzip $(INFODIR)/dir; \
else \
../src/install-info zgv $(INFODIR)/dir; \
chmod a+r $(INFODIR)/dir; \
fi
endif
../src/install-info: ../src/install-info.c
cd ../src && $(MAKE) install-info
# can't easily fix dir :-/, but do remove the files.
uninstall:
$(RM) $(MANDIR)/zgv.1*
$(RM) $(INFODIR)/zgv*
clean:
$(RM) *~ zgv.dvi
|