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
|
# Makefile for xzgv docs
# This gets definitions for INFODIR, MANDIR, etc.
include ../config.mk
all: info man pdf
info: xzgv.info.gz
pdf: xzgv.pdf
xzgv.info.gz: xzgv.texi
makeinfo --no-split xzgv.texi
gzip -9f xzgv.info
# `-c' removes the huge number of associated files created by TeX.
# This saves doing a `make clean' from hell. :-)
xzgv.pdf: xzgv.texi
@echo "=== NB: If you don't want A4 paper, edit config.mk! ==="
texi2pdf -c $(USE_A4_DEF) xzgv.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 xzgv.1 is included
# in the source tgz.
#
man: xzgv.1
xzgv.1: xzgv.texi makeman.awk
@echo 'Making man page from xzgv.texi...'
LANG= gawk -f makeman.awk <xzgv.texi >xzgv.1
installdirs:
/bin/sh ../mkinstalldirs $(INFODIR) $(MANDIR)
install: installdirs
install xzgv.1 $(MANDIR)
install -m 644 xzgv.info.gz $(INFODIR)
install-info --infodir=$(INFODIR) xzgv.info.gz
uninstall:
$(RM) $(MANDIR)/xzgv.1
$(RM) $(INFODIR)/xzgv.gz
install-info --remove xzgv.info.gz
# This *doesn't* remove the Info files, which should stick around to
# be included in the distribution. Ditto for the man page, since
# building it requires gawk.
clean:
$(RM) *~ xzgv.pdf
realclean: clean
$(RM) xzgv.1 xzgv.info.gz
|