4 all: bin
/calculator bin
/test
6 bin
/calculator
: $(shell ${NITLS} -M src
/calculator.nit linux
) ${NITC}
8 ${NITC} -o
$@ src
/calculator.nit
-m linux
10 bin
/scientific
: $(shell ${NITLS} -M scientific linux
) ${NITC}
12 ${NITC} -o
$@ src
/scientific
-m linux
17 # There are 4 versions, combining 2 variations:
18 # * scientific vs non-scientific
19 # * android API 21+ vs under 21
21 android
: bin
/calculator14.apk bin
/scientific14.apk bin
/calculator21.apk bin
/scientific21.apk
23 bin
/calculator14.apk
: $(shell ${NITLS} -M src
/android14.nit
) ${NITC} android
/res
/drawable-hdpi
/icon.png
25 ${NITC} -o
$@ src
/android14.nit
-D debug
27 bin
/calculator21.apk
: $(shell ${NITLS} -M src
/android21
) ${NITC} android
/res
/drawable-hdpi
/icon.png
29 ${NITC} -o
$@ src
/android21
-D debug
31 bin
/scientific14.apk
: $(shell ${NITLS} -M src
/scientific src
/android14.nit
) ${NITC} src
/scientific
/android
/res
/drawable-hdpi
/icon.png
33 ${NITC} -o
$@ src
/scientific
-m src
/android14.nit
-D debug
35 bin
/scientific21.apk
: $(shell ${NITLS} -M src
/scientific src
/android21
) ${NITC} src
/scientific
/android
/res
/drawable-hdpi
/icon.png
37 ${NITC} -o
$@ src
/scientific
-m src
/android21
-D debug
39 android-release
: $(shell ${NITLS} -M src
/scientific src
/android14.nit
) ${NITC} android
/res
/drawable-hdpi
/icon.png
41 ${NITC} -o bin
/calculator14.apk src
/android14.nit
--release
42 ${NITC} -o bin
/calculator21.apk src
/android21
--release
43 ${NITC} -o bin
/scientific14.apk src
/scientific
-m src
/android14.nit
--release
44 ${NITC} -o bin
/scientific21.apk src
/scientific
-m src
/android21
--release
46 android
/res
/drawable-hdpi
/icon.png
: art
/icon.svg ..
/..
/contrib
/inkscape_tools
/bin
/svg_to_icons
48 ..
/..
/contrib
/inkscape_tools
/bin
/svg_to_icons art
/icon.svg
--android
--out android
/res
/
50 src
/scientific
/android
/res
/drawable-hdpi
/icon.png
: art
/icon-sci.svg ..
/..
/contrib
/inkscape_tools
/bin
/svg_to_icons
51 mkdir
-p src
/scientific
/android
/res
52 ..
/..
/contrib
/inkscape_tools
/bin
/svg_to_icons art
/icon-sci.svg
--android
--out src
/scientific
/android
/res
/
54 ..
/..
/contrib
/inkscape_tools
/bin
/svg_to_icons
:
55 make
-C ..
/..
/contrib
/inkscape_tools
/
57 android-install
: bin
/calculator14.apk
58 adb
install -r bin
/calculator14.apk
63 ios
: bin
/calculator.app bin
/scientific.app
65 bin
/calculator.app
: $(shell ${NITLS} -M src
/ios.nit
) ${NITC} ios
/AppIcon.appiconset
/Contents.json
67 ${NITC} -o
$@ src
/ios.nit
-D debug
69 bin
/scientific.app
: $(shell ${NITLS} -M src
/scientific src
/ios.nit
) ${NITC} src
/scientific
/ios
/AppIcon.appiconset
/Contents.json
71 ${NITC} -o
$@ src
/scientific
-m src
/ios.nit
-D debug
73 ios
/AppIcon.appiconset
/Contents.json
: art
/icon-ios.svg
75 ..
/..
/contrib
/inkscape_tools
/bin
/svg_to_icons art
/icon-ios.svg
--ios
--out ios
/AppIcon.appiconset
/
77 src
/scientific
/ios
/AppIcon.appiconset
/Contents.json
: art
/icon-ios.svg
79 ..
/..
/contrib
/inkscape_tools
/bin
/svg_to_icons art
/icon-ios-sci.svg
--ios
--out src
/scientific
/ios
/AppIcon.appiconset
/
84 bin
/test: $(shell ${NITLS} -M src
/calculator_test.nit
) ${NITC}
86 ${NITC} -o
$@ src
/calculator_test.nit