rendered paste body.PHONY: naive-word-count #because there is a script with that name in the dir
meditor-line-count:
@echo Counting meditor Java lines...
find /home/bsm/sideris/biomap/meditor/org/biomap/ -iname "*.java" | xargs --replace=xxx cat xxx | wc -l > meditor_line_count
paper: meditor-line-count
latex paper.tex
bibtex paper
latex paper.tex
latex paper.tex
dvips paper.dvi -o paper.ps
paper-pdf: paper
dvipdfm -o paper.pdf paper.dvi
report: meditor-line-count
latex report.tex
bibtex report
latex report.tex
latex report.tex
dvips report.dvi -o report.ps
thesis:
ifeq( $(labels), 1 )
echo '\usepackage{showlabels} \renewcommand{\showlabelfont}{\small}' > labels.switch
endif
latex thesis.tex
# bibtex thesis
latex thesis.tex
latex thesis.tex
dvips -o thesis.ps thesis.dvi
ifeq( $(labels), 1 ):
echo '' > labels.switch
endif
thesis-labels:
echo '\usepackage{showlabels} \renewcommand{\showlabelfont}{\small}' > labels.switch
$(MAKE) thesis
echo '' > labels.switch
thesis-pdf:
# pdflatex thesis.tex
dvipdf thesis.dvi thesis.pdf
report-pdf: report
dvipdfm report.dvi report.pdf
naive-word-count:
@./naive-word-count
word-count: thesis-pdf
#@echo Tranfer report: `detex report.tex | wc -w` words
#@echo Paper: `detex paper.tex | wc -w` words
@echo Thesis word count: `pdftotext thesis.pdf - | wc -w` words
clean:
rm -rf *.dvi *.log *.aux *.toc *.bbl *.blg *~ *.ps *.pdf *.lof