1. camlspotter
  2. ocaml-indent

Commits

camlspotter  committed df4cce3

tests_out creation

  • Participants
  • Parent commits 9053664
  • Branches default

Comments (0)

Files changed (1)

File OMakefile

View file
  • Ignore whitespace
 
 foreach (file, $(TESTS))
   $(test_out $(file)): $(file) ./indent
+    mkdir_if_not_exists(tests_out)
     ./indent $< > $@
   export
 
     diff -x '*~' -c -r tests tests_out > $@
 
 test: result.diff
+
+#|ditto.
+mkdir_if_not_exists(dir) =
+  if $(not $(test -e $(dir))):
+    mkdir $(dir) 
+  return