-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (33 loc) · 1.04 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
38
39
40
41
42
43
44
45
46
LATEX = pdflatex -shell-escape -interaction=nonstopmode -file-line-error -output-directory build
BIBTEX = bibtex
.PHONY: all clean
all: template datasheet appnotes presentations
clean: clean_build clean_appnotes clean_presentations clean_datasheet
appNotes/%.pdf: appNotes/%.tex
${LATEX} $<
${BIBTEX} build/$(patsubst %.tex,%.aux,$(notdir $<))
${LATEX} $<
${LATEX} $<
mv build/$(notdir $@) $(patsubst %.tex,%.pdf,$<)
presentations/%.pdf: presentations/%.tex
${LATEX} $<
${LATEX} $<
mv build/$(notdir $@) $(patsubst %.tex,%.pdf,$<)
%.pdf: %.tex
${LATEX} $<
${BIBTEX} build/$(patsubst %.tex,%.aux,$(notdir $<))
${LATEX} $<
${LATEX} $<
mv build/$(notdir $@) $(patsubst %.tex,%.pdf,$<)
template: template.pdf
datasheet: KETCubeDatasheet.pdf
clean_datasheet:
rm -f KETCubeDatasheet.pdf
appnotes: $(patsubst %.tex, %.pdf, $(wildcard appNotes/*.tex))
presentations: $(patsubst %.tex, %.pdf, $(wildcard presentations/*.tex))
clean_appnotes:
rm -rf appNotes/*.pdf
clean_presentations:
rm -rf presentations/*.pdf
clean_build:
rm -rf build/*