app.nit: intro example for app::ui
[nit.git] / lib / app / examples / Makefile
index f516f0d..2dfc094 100644 (file)
@@ -1,4 +1,8 @@
-all: http_request_example
+all: http_request_example ui_example
+
+android: http_request_example.apk ui_example.apk
+
+ios: http_request_example.app ui_example.app
 
 http_request_example: $(shell nitls -M http_request_example.nit linux)
        nitc http_request_example.nit -m linux
@@ -8,3 +12,15 @@ http_request_example.apk: $(shell nitls -M http_request_example.nit android)
 
 http_request_example.app: $(shell nitls -M http_request_example.nit ios)
        nitc http_request_example.nit -m ios
+
+ui_example: $(shell nitls -M ui_example.nit linux)
+       nitc ui_example.nit -m linux
+
+ui_example.apk: $(shell nitls -M ui_example.nit android)
+       nitc ui_example.nit -m android
+
+ui_example.app: $(shell nitls -M ui_example.nit ios)
+       nitc ui_example.nit -m ios
+
+clean:
+       rm -rf http_request_example http_request_example.apk http_request_example.app ui_example ui_example.apk ui_example.app