parser: Allow an empty goal statement with no targets, deps or code.
[goals.git] / tests / test1.gl
index fc059d0..44c15a2 100644 (file)
@@ -1,8 +1,15 @@
 # Test.
 
-goal all = : ["file1.o", "file2.o"]
+include "url.gl"
 
-"file1.o" : "file1.c" {
-  echo file1.c "->" file1.o
-  touch file1.o
+let foo = "bar"
+
+goal all = : "file1.o", *file("file2.o")
+
+goal clean = { }
+
+goal compile (name) =
+"%name.o" : "%name.c" {
+  echo %< "->" %@
+  touch %@
 }