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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
# $Id: Makefile.in,v 1.7 2014/11/13 17:12:55 karl Exp $
# public domain
# Makefile[.in] for TeX for the Impatient.
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_URL = @PACKAGE_URL@
prefix = @prefix@
datarootdir = @datarootdir@
docdir = @docdir@
pdfdir = @pdfdir@
dvidir = @dvidir@
htmldir = @htmldir@
DESTDIR =
SHELL = /bin/sh
ICON = @ICON@
TEX = @TEX@
PDFTEX = @PDFTEX@
HTTEX = @HTTEX@
MKDIR_P = @MKDIR_P@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
TEXFILES = backm.tex book.tex capsule.tex concepts.tex config.tex \
copyrght.tex eplain.tex errors.tex examples.tex fdl.tex fonts.tex \
frontm.tex genops.tex index.tex macros.tex math.tex modes.tex \
pages.tex paras.tex preface.tex read1st.tex tips.tex usebook.tex \
usermacs.tex usingtex.tex xmptext.tex
ICONSCRIPTS = index1.icn index2.icn
SDXFILE = book.sdx
AUXFILES = book.aux book.ccs book.idx book.toc
LOGFILES = book.log
PDFFILE = book.pdf
DVIFILE = book.dvi
HTMLFILE = book.html
all: pdf #html dvi
dvi: $(DVIFILE)
pdf: $(PDFFILE)
html: $(HTMLFILE)
install: installdirs install-dvi install-pdf
installdirs:
$(MKDIR_P) $(DESTDIR)$(dvidir)
$(MKDIR_P) $(DESTDIR)$(pdfdir)
$(MKDIR_P) $(DESTDIR)$(htmldir)
install-dvi: dvi
$(INSTALL_DATA) book.dvi $(DESTDIR)$(dvidir)/teximpatient.dvi
install-pdf: pdf
$(INSTALL_DATA) book.pdf $(DESTDIR)$(dvidir)/teximpatient.pdf
install-html: html
$(INSTALL_DATA) book.html $(DESTDIR)$(dvidir)/teximpatient.html
book.dvi: $(TEXFILES)
$(TEX) '\nonstopmode\input book'
book.pdf: $(TEXFILES) $(SDXFILE)
$(PDFTEX) '\nonstopmode\input book'
book.html: book.tex
$(HTTEX) book.tex "html"
book.idx: book.dvi
# + chars in book.idx need to be changed to SPC chars in book.sdx
# somewhere, but currently aren't. Therefore, we effectively disable
# the rule as long as book.sdx exists. This also avoids rerunning every
# time (since book.idx changes every time; that file is written by TeX).
# But the page numbers in the existing book.sdx are probably wrong by now :(.
book.sdx: #book.idx $(ICONSCRIPTS)
if test -z "$(ICON)"; then touch book.sdx; else \
(cat book.idx | $(ICON) index1.icn | sort \
| $(ICON) index2.icn >book.sdx); fi
dist: all
tar czf $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \
Makefile.in configure configure.ac \
NEWS README errata.future \
$(ICONSCRIPTS) \
$(TEXFILES) \
$(SDXFILE) \
$(PDFFILE)
dist-cn:
tar czf $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)cn.tar.gz \
cn-git/Makefile cn-git/*.tex cn-git/cnbook.pdf
distclean: clean
-rm -rf config.log config.status autom4te.cache Makefile
clean:
-rm -f $(LOGFILES) $(AUXFILES) x.tex
.PHONY: all dist clean pdf dvi html install installdirs \
install-dvi install-pdf install-html
configure: configure.ac
autoconf
|