forked from lufixSch/meeting-protocol-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (28 loc) · 752 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
# Minimal makefile for Latex meeting protocol template
#
# You can set these variables from the command line, and also
# from the environment.
OUTDIR ?= ./build
DOC ?= %ENTRYPOINT%
# Put it first so that "make" without argument is like "make help".
help:
.PHONY: help Makefile
# create PDF with xelatex
pdf: prebuild
@xelatex -synctex=1 -interaction=nonstopmode -file-line-error -output-directory=$(OUTDIR) $(DOC)
prebuild:
@/usr/bin/env python3 ./scripts/build.py
# clean buildfolder and create pdf
clean:
@rm -R ./build
@make pdf
push:
@git push
@git push "[email protected]:lufixSch/meeting-protocol-template.git"
# run setup script
init:
@/usr/bin/env python3 ./scripts/setup.py
new:
@git restore .
@rm $(DOC)
@make init