-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (30 loc) · 762 Bytes
/
Makefile
File metadata and controls
35 lines (30 loc) · 762 Bytes
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
LATEX=pdflatex
BIBTEX=bibtex
STEM=code-rules
all : commands
## commands : show all commands.
commands :
@grep -h -E '^##' ${MAKEFILE_LIST} \
| sed -e 's/## //g' \
| column -t -s ':'
## pdf : re-generate PDF
pdf :
${LATEX} ${STEM}
${BIBTEX} ${STEM}
${LATEX} ${STEM}
${LATEX} ${STEM}
## spell: check spelling
spell:
aspell --mode tex check code-rules.tex
## clean : clean up junk files.
clean :
@rm -rf _site
@find . -name '*~' -exec rm {} \;
@find . -name '*.aux' -exec rm {} \;
@find . -name '*.bak' -exec rm {} \;
@find . -name '*.bbl' -exec rm {} \;
@find . -name '*.blg' -exec rm {} \;
@find . -name '*.dvi' -exec rm {} \;
@find . -name '*.log' -exec rm {} \;
@find . -name '*.out' -exec rm {} \;
@find . -name .DS_Store -exec rm {} \;