jobs: Don't let Failure exception escape from worker.
[goals.git] / tests / test1.gl
index afdcc34..85335ce 100644 (file)
@@ -1,8 +1,13 @@
 # Test.
 
+include "url.gl"
+
+let foo = "bar"
+
 goal all = : "file1.o", *file("file2.o")
 
-"file1.o" : "file1.c" {
-  echo file1.c "->" file1.o
-  touch file1.o
+goal compile (name) =
+"%name.o" : "%name.c" {
+  echo %< "->" %@
+  touch %@
 }