Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (33 sloc) 1.02 KB
.PHONY: once spell compilecheck fmtcheck
GREPV=grep -v Underfull|grep -v Overfull|grep -v ^\(
all: go.pdf
go.pdf: go-*.tex ex-*/*.tex src/*.go tab/*.tex fig/*.tex blocksbook.cls go.bib .fig .tab go.tex about-*.tex
xelatex go.tex && bibtex go && makeindex go \
&& xelatex go.tex && xelatex go.tex
.fig: fig/*.svg
( cd fig; make all )
touch .fig
.tab:
( cd tab; make all )
touch .tab
clean:
rm -f go.lol go.aux *.log map.log go.pdf go.bbl go.blg go.toc go.ind go.lot go.lof go.loe
rm -f go.ilg go.idx go.lgpl missfont.log doc_data.txt go.ex .fig .tab
rm -f go.code
distclean: clean
( cd fig; make clean )
( cd tab; make clean )
( cd src; make clean )
spell:
for i in *.tex ex-*/*.tex; do aspell check $$i; done
once:
xelatex go.tex
compilecheck:
@bin/go-lstinputlisting.pl ~/git/gobook *.tex
@bin/go-lstinputlisting.pl ~/git/gobook ex-*/*.tex
@bin/go-lstinputlisting.pl ~/git/gobook fig/*.tex
@rm -f *.6 *.8
fmtcheck:
@bin/go-lstlisting.pl *.tex
@bin/go-lstlisting.pl ex-*/*.tex
@bin/go-lstlisting.pl fig/*.tex