-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53b7046
commit 0a3a7e5
Showing
6 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -301,4 +301,5 @@ TSWLatexianTemp* | |
#*Notes.bib | ||
|
||
!images/**/*.pdf | ||
main-diff.tex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
CLEAN = *.aux *.blg *.fdb_latexmk *.fls *.log *.out *.pdf *.synctex.gz *.toc *.dvi main-diff.tex | ||
IMAGE = $(shell find . -name '*.drawio.png') | ||
|
||
MDTOPDF = md-to-pdf | ||
DRAWIO = /Applications/draw.io.app/Contents/MacOS/draw.io | ||
|
||
.PHONY: all | ||
all: main.pdf | ||
|
||
main.pdf: main.tex main.bib $(IMAGE:%.drawio.png=%.pdf) | ||
latexmk -g main.tex | ||
|
||
.PHONY: diff | ||
diff: main-diff.pdf | ||
|
||
main-diff.pdf main-diff.tex: main.tex main.bib | ||
./script/latexdiff.sh $(VERSION) | ||
@echo VERSION = $(VERSION) | ||
|
||
.PHONY: images | ||
images: $(IMAGE:%.drawio.png=%.pdf) | ||
|
||
%.pdf: %.drawio.png | ||
$(DRAWIO) --export --format pdf --crop -o $@ $^ | ||
|
||
.PHONY: clean/images | ||
clean/images: | ||
- $(RM) $(IMAGE:%.drawio.png=%.pdf) | ||
|
||
.PHONY: clean | ||
clean: | ||
- $(RM) -r $(CLEAN) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters