-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
34 lines (24 loc) · 899 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
# command: make deploy TargetCPU=<parameter> TargetOS=<parameter> ExeExt=<parameter>
Target = $(TargetCPU)-$(TargetOS)
# archive of executable version ready to deploy
#==============================================
DEPLOY: deploy/$(Target).zip
deploy/$(Target).zip: deploy deploy/$(Target)/blood$(ExeExt) deploy/$(Target)/LICENSE.md deploy/$(Target)/README.md
pushd deploy
echo $(PWD)
zip -r $(Target).zip $(Target)
echo $(PWD)
popd
echo $(PWD)
deploy:
mkdir -p deploy
deploy/$(Target)/blood$(ExeExt): lib/$(Target)/blood$(ExeExt) deploy/$(Target)
strip -o deploy/$(Target)/blood$(ExeExt) lib/$(Target)/blood$(ExeExt)
lib/$(Target)/blood$(ExeExt): blood.lpi
lazbuild blood.lpi
deploy/$(Target): deploy
mkdir -p deploy/$(Target)
deploy/$(Target)/LICENSE.md: LICENSE.md
cp -u LICENSE.md deploy/$(Target)/
deploy/$(Target)/README.md: README.md
cp -u README.md deploy/$(Target)/