mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-22 04:21:16 -08:00
Cleaned up Makefile, to avoid repetitions.
This commit is contained in:
parent
669fe45de8
commit
8771084a8d
1 changed files with 21 additions and 13 deletions
|
|
@ -1,28 +1,36 @@
|
|||
FILES= *.txi */*.txi figures/*
|
||||
|
||||
MANNAME=ecl-manual
|
||||
HTMLDIR=$(MANNAME)
|
||||
PDFNAME=$(MANNAME).pdf
|
||||
# left this as "ecl" for historic reasons
|
||||
INFONAME=ecl.info
|
||||
|
||||
CWD=$(shell pwd)
|
||||
|
||||
.PHONY: all pdf info html
|
||||
|
||||
all: pdf info html
|
||||
|
||||
pdf: manual.pdf
|
||||
pdf: $(PDFNAME)
|
||||
info: ecl.info.gz
|
||||
html: html/index.html
|
||||
html: $(HTMLDIR)/index.html
|
||||
|
||||
manual.pdf: $(FILES)
|
||||
PDFTEX=$(CWD)/z-texi2pdfetex-fix-aux texi2pdf manual.txi
|
||||
ecl-manual.pdf: $(FILES)
|
||||
PDFTEX=$(CWD)/z-texi2pdfetex-fix-aux texi2pdf manual.txi \
|
||||
&& cp -pf manual.pdf $(PDFNAME)
|
||||
|
||||
ecl.info.gz: $(FILES)
|
||||
$(MAKEINFO) --no-split manual.txi
|
||||
gzip < ecl.info > ecl.info.gz
|
||||
$(MAKEINFO) -o $(INFONAME) --no-split manual.txi
|
||||
gzip < $(INFONAME) > $(INFONAME).gz
|
||||
|
||||
html/index.html: $(FILES)
|
||||
$(MAKEINFO) --html --css-include=ecl.css --split=section manual.txi
|
||||
rm -rf html
|
||||
mv ecl html
|
||||
cp -r figures html
|
||||
$(HTMLDIR)/index.html: $(FILES)
|
||||
-rm -rf $(HTMLDIR)/
|
||||
$(MAKEINFO) -o $(HTMLDIR) --html --css-include=ecl.css --split=section manual.txi
|
||||
cp -r figures $(HTMLDIR)/
|
||||
|
||||
clean:
|
||||
-rm -rf *.{aux,cf,cfs,cp,cpp,cpps,cps,ex,exs,fn,fns,ft,fts,log,lsp,lsps,toc,tp,tps,vr,vrs,pdf,info,info-1,info-2,info.gz,html} html \
|
||||
manual.[ceflvpa]* manual.toc manual.tp manual.tps
|
||||
-rm -rf *.{aux,cf,cfs,cp,cpp,cpps,cps,ex,exs,fn,fns,ft,fts,log,lsp,lsps,toc,tp,tps,vr,vrs,pdf,info,info-1,info-2,info.gz,html} html/ \
|
||||
manual.[ceflvpa]* manual.toc manual.tp manual.tps \
|
||||
$(PDFNAME) $(HTMLDIR)/ \
|
||||
$(INFONAME) $(INFONAME).gz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue