-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
37 lines (31 loc) · 1.07 KB
/
Makefile
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
build:
./convert.sh
sed -i -e 's/\\begin{verbatim}/\\begin{minipage}\{0\.95\\textwidth}\\begin{lstlisting}/g' s_*.tex
sed -i -e 's/\\end{verbatim}/\\end{lstlisting}\\end{minipage}/g' s_*.tex
latex document.tex
bibtex document
latex document.tex
pdflatex document.tex
check:
@echo "The following items may contain weak word usage.--------------------"
@sh ./weasels.sh s_*.md 1>&2
@echo "The following items may contain passive language.-------------------"
@sh ./passive_voice.sh s_*.md 1>&2
@echo "The following items may contain unnecessary duplication.------------"
@perl ./dups s_*.md 2>&2
@echo "Checking spelling.---------------------------------------------------"
@ispell s_*.md
@echo "Checking diction.---------------------------------------------------"
@sh diction.sh s_*.md 1>&2
style:
@echo "Checking for nominalizations.---------------------------------------"
@sh style.sh s_*.md 1>&2
test:
#$(MAKE) check
$(MAKE) build
./focus &> /dev/null
open:
#open document.pdf
evince document.pdf &
clean:
rm -f *.out *.pdf *.aux *.dvi *.log *.blg *.bbl *.tex-e