/
Makefile
37 lines (27 loc) · 850 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
all: build
build: wubi
wubi: check_wine pylauncher src/main.py src/wubi/*.py
rm -rf build/wubi
cp wine/drive_c/windows/system32/python23.dll build/pylauncher #TBD
PYTHONPATH=src tools/pywine -OO build/pylauncher/pack.py src/main.py build/wubi data bin
mv build/wubi/application.exe build/wubi.exe
pylauncher: 7z src/pylauncher/*.c src/pylauncher/*.py
cp -rf src/pylauncher build
cd build/pylauncher; make
# not compiling 7z at the moment, but source is used by pylauncher
7z: src/7z/C/*.c
cp -rf src/7z build
runbin: wubi
rm -rf build/test
mkdir build/test
cd build/test; ../../tools/wine ../wubi.exe -v --skipsizecheck
check_wine: tools/check_wine
tools/check_wine
unittest:
tools/pywine tools/test
runpy:
PYTHONPATH=src tools/pywine src/main.py -v --skipsizecheck
clean:
rm -rf dist/*
rm -rf build/*
.PHONY: all build test