forked from 4thcalabash/code_library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 640 Bytes
/
Makefile
File metadata and controls
26 lines (21 loc) · 640 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
SRCS=$(shell find tex/)
build/main.pdf: $(SRCS) Makefile scl.yaml clean update
mkdir -p src/
mkdir -p build/
python gen.py > build/code.tex
cp tex/* build/
cd build && xelatex main.tex
cd build && xelatex main.tex
.PHONY: clean check
check:
true # code valid check
clean:
rm -rf src/
rm -rf build/
update:
mkdir -p src/
cd src/ && rm * -rf
git submodule init && git submodule update && git submodule update --remote
cp ACM-Code-Library src/ -rf
cd src/ACM-Code-Library/ && rm -rf .idea/ cmake-build-debug/ .git/ && rm -f .gitignore README.md CMakeLists.txt
cd src/ && mv ACM-Code-Library/* ./ && rm -rf ACM-Code-Library