# 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.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