-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (31 loc) · 961 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
# Usage:
# To create the MyPyTutor zip file:
# $ make
#
# To push all relevant files to the EAIT zone:
# $ make push
.PHONY: all clean tutorials build push
BUILD = MyPyTutor34.zip \
tut_admin.txt \
CSSE1001Tutorials/CSSE1001Tutorials.zip \
CSSE1001Tutorials/config.txt \
doc/MyPyTutor.html \
code/mpt_installer.py \
www/index.html
all: MyPyTutor34.zip tutorials
clean:
-rm MyPyTutor34.zip
-rm code/tutorlib/*.pyc
-rm -r tut_admin.txt CSSE1001Tutorials
-rm -r build
tutorials: problem_db/*
-python3 code/create_tutorial.py problem_db/CSSE1001.txt CSSE1001Tutorials
build: tutorials $(BUILD)
mkdir -p build
cp $(BUILD) build
push: build
scp build/* [email protected]:
MyPyTutor34.zip: code/*.py code/*/*.py
cp code/MyPyTutor.py code/MyPyTutor.pyw
python3.4 -m compileall -b code/tutorlib
cd code && zip ../MyPyTutor34.zip MyPyTutor.py code/MyPyTutor.pyw tutorlib/*.pyc