shoot: add a `null` target that uses mnit::mnit_null
authorJean Privat <jean@pryen.org>
Mon, 16 Jun 2014 15:30:28 +0000 (11:30 -0400)
committerJean Privat <jean@pryen.org>
Tue, 1 Jul 2014 19:05:42 +0000 (15:05 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

examples/shoot/Makefile
examples/shoot/src/shoot_null.nit [new file with mode: 0644]

index f59d81e..ebba097 100644 (file)
@@ -8,5 +8,9 @@ android:
        mkdir -p bin
        ../../bin/nitc -o bin/shoot.apk src/shoot_android.nit
 
+null:
+       mkdir -p bin
+       ../../bin/nitc -o bin/shoot_null src/shoot_null.nit
+
 clean:
        rm -rf bin
diff --git a/examples/shoot/src/shoot_null.nit b/examples/shoot/src/shoot_null.nit
new file mode 100644 (file)
index 0000000..4f6f3bb
--- /dev/null
@@ -0,0 +1,19 @@
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Dummy (null) version of the shoot program
+module shoot_null
+
+import shoot
+import mnit::mnit_null