contrib/tinks: remove the archive rule
[nit.git] / contrib / tinks / Makefile
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 all: bin/server bin/tinks bin/tinks3d
16
17 pre-build: assets/images/drawing.png src/server/server_serialize.nit
18
19 # Client
20 bin/tinks: assets/images/drawing.png src/client/client.nit $(shell ../../bin/nitls -M src/client/linux_client.nit)
21 ../../bin/nitserial -o src/client/client_serialize.nit src/client/client.nit
22 ../../bin/nitc -o bin/tinks src/client/linux_client.nit -m src/client/client_serialize.nit
23
24 bin/tinks3d: $(shell ../../bin/nitls -M src/client/client3d.nit -m linux)
25 ../../bin/nitserial -o src/client/client_serialize.nit src/client/client3d.nit
26 ../../bin/nitc -o bin/tinks3d src/client/client3d.nit \
27 -m src/client/client_serialize.nit -m linux
28
29 assets/images/drawing.png: art/drawing.svg
30 ../inkscape_tools/bin/svg_to_png_and_nit art/drawing.svg -a assets/ -s src/client/ -x 2.0
31
32 # Server
33 bin/server: src/server/server_serialize.nit $(shell ../../bin/nitls -M src/server/dedicated.nit)
34 ../../bin/nitc -o bin/server src/server/dedicated.nit -m src/server/server_serialize.nit
35
36 src/server/server_serialize.nit: $(shell ../../bin/nitls -M src/server/dedicated.nit)
37 ../../bin/nitserial -o src/server/server_serialize.nit src/server/dedicated.nit
38
39 # Android
40 android: bin/tinks.apk
41 bin/tinks.apk: assets/images/drawing.png res/drawable-ldpi/icon.png $(shell ../../bin/nitls -M src/client/android_client.nit)
42 ../../bin/nitserial -o src/client/client_serialize.nit src/client/client.nit
43 ../../bin/nitc -o bin/tinks.apk src/client/android_client.nit -m src/client/client_serialize.nit
44
45 android-release: assets/images/drawing.png res/drawable-ldpi/icon.png $(shell ../../bin/nitls -M src/client/android_client.nit)
46 ../../bin/nitserial -o src/client/client_serialize.nit src/client/client.nit
47 ../../bin/nitc -o bin/tinks.apk src/client/android_client.nit -m src/client/client_serialize.nit --release
48
49 res/drawable-ldpi/icon.png: art/icon.svg
50 ../inkscape_tools/bin/svg_to_icons art/icon.svg --android --out res/
51
52 .PHONY: pub