Moving `examples/hello_world` -> `examples/hello-world` to match other examples.
[vvhitespace] / examples / hello-world / Makefile
index 32f38a7..94fca51 100644 (file)
@@ -1,15 +1,17 @@
 # (c) 2019 Aaron Taylor <ataylor at subgeniuskitty dot com>
 # (c) 2019 Aaron Taylor <ataylor at subgeniuskitty dot com>
-# All rights reserved.
+# See LICENSE.txt file for copyright and license details.
 
 include ../config.mk
 
 all: hello
 
 hello:
 
 include ../config.mk
 
 all: hello
 
 hello:
-       $(VVS_COMPILER) -i hello.pvvs -o hello.vvs
+       @$(CPP) $(CPP_FLAGS) -o temp.pvvs hello.pvvs
+       @$(VVS_COMPILER) -i temp.pvvs -o hello.vvs
+       @rm -f temp.pvvs
 
 
-run:
-       $(VVS_INTERPRETER) -i hello.vvs
+run: hello
+       @$(VVS_INTERPRETER) -i hello.vvs
 
 clean:
 
 clean:
-       @rm -f hello.vvs
+       @rm -f hello.vvs temp.pvvs