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
|
include ../Makeconf
TEXISRC = announc.texi authors.texi bugrept.texi bugs.texi \
credits.texi currfeat.texi ess.texi ess-defs.texi \
help-s.texi help-sas.texi installation.texi \
license.texi mailing.texi onewfeat.texi news.texi onews.texi \
newfeat.texi requires.texi help-bugs.texi \
help-jags.texi allnews.texi Makefile ../Makeconf ../VERSION
PDFs = ess.pdf readme.pdf refcard/refcard.pdf
TXTs = ../README ../ANNOUNCE ../NEWS ../ONEWS
# Don't build pdf/html by default
all : info text
info : info/ess.info
text : $(TXTs)
html : html/ess.html html/readme.html html/news.html
pdf : $(PDFs)
ess.pdf : $(TEXISRC)
$(TEXI2PDF) ess.texi
readme.pdf : $(TEXISRC); $(TEXI2PDF) readme.texi
distclean clean:
@rm -f *.aux *.cp *.cps *.fn *.fns *.ky *.kys *.log *.out \
*.pg *.pgs *.tmp *.toc *.tp *.vr *.vrs
@rm -f refcard/*.aux refcard/*.log
@rm -f $(TXTs) $(PDFs) info/*.info* \
html/* *.info dir
../README: $(TEXISRC)
-$(MAKETXT) readme.texi \
| perl -pe 'last if /^Concept Index/;' > $@
../ANNOUNCE: $(TEXISRC)
-$(MAKETXT) announc.texi \
| perl -pe 'last if /^Concept Index/;' > $@
../NEWS: Makefile ess-defs.texi newfeat.texi news.texi
-$(MAKETXT) news.texi > $@
../ONEWS: Makefile ess-defs.texi onewfeat.texi onews.texi
-$(MAKETXT) onews.texi > $@
### File Dependencies
info/ess.info: $(TEXISRC) ../VERSION
@echo "making Info documentation..."
-$(MAKEINFO) ess.texi
mv -f ess.info info/
install: install-info install-other-docs
install-info : info/ess.info
-$(INSTALLDIR) $(INFODIR)
$(INSTALL) info/ess.info $(INFODIR)
$(INSTALL) info/dir $(INFODIR)
grep $(ESSINFONODE1) $(INFODIR)/dir || \
(echo >> $(INFODIR)/dir; echo 'Emacs' >> $(INFODIR)/dir; \
echo $(ESSINFONODE1) $(ESSINFONODE2) >> $(INFODIR)/dir; \
echo $(ESSINFONODE3) >> $(INFODIR)/dir)
install-other-docs: pdf html
-$(INSTALLDIR) $(DOCDIR)
$(INSTALL) ess.pdf readme.pdf $(DOCDIR)
$(INSTALL) html/ess.html html/readme.html html/news.html $(DOCDIR)
$(INSTALL) refcard/refcard.pdf $(DOCDIR)
uninstall :
-cd $(DOCDIR) && $(UNINSTALL) ess.pdf readme.pdf README ANNOUNCE
-cd $(DOCDIR) && $(UNINSTALL) ess.html readme.html news.html
-cd $(DOCDIR) && $(UNINSTALL) refcard.pdf
## TO DO: ess_toc.html & readme_toc.html should be merged into index.html
html/ess.html: $(TEXISRC)
@echo "making HTML documentation..."
mkdir -p html
-$(MAKEHTML) html/ess.html ess.texi
html/readme.html: $(TEXISRC)
-$(MAKEHTML) html/readme.html --no-validate readme.texi
html/news.html: $(TEXISRC)
mkdir -p html
-$(MAKEHTML) html/news.html allnews.texi
refcard/refcard.pdf: refcard/refcard.tex
(cd refcard ; pdflatex refcard)
|