-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
42 lines (33 loc) · 1021 Bytes
/
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
## Build linux/amd64 image for GitHub Action (default)
.PHONY: all
all: amd64
## Build linux/amd64 image
.PHONY: amd64
amd64:
cd docker && make clean amd64
## Build linux/arm64 image
.PHONY: arm64
arm64:
cd docker && make clean arm64
## Install Pandoc-Lecture and Hugo Relearn Theme to ${HOME}/.local/share/pandoc/ for local use
.PHONY: install_scripts_locally
install_scripts_locally:
mkdir -p ${HOME}/.local/share/
export XDG_DATA_HOME="${HOME}/.local/share" && \
sh docker/install-pandoc-lecture.sh && \
sh docker/install-relearn.sh
## Demo
.PHONY: demo-lecture
demo-lecture:
cd demo/outdated/ && make -f Makefile.lecture all
.PHONY: demo-homework
demo-homework:
cd demo/outdated/ && make -f Makefile.homework all
.PHONY: demo-exams
demo-exams:
cd demo/outdated/ && make -f Makefile.exams all
.PHONY: demo-clean
demo-clean:
cd demo/outdated/ && make -f Makefile.lecture clean
cd demo/outdated/ && make -f Makefile.homework clean
cd demo/outdated/ && make -f Makefile.exams clean