Commits

camlspotter  committed 2faf689

MyOCamlPackage build things by default

  • Participants
  • Parent commits 78f3dc2

Comments (0)

Files changed (2)

 
   ## build rule
 
-  OCamlPackage($(library_name), $(files))
+  .DEFAULT: $(OCamlPackage $(library_name), $(files))
 
   ## clean
   AutoClean()
 
   VISIT_SUBDIRS=$(set-diff $(subdirs), $(dirs))
 
-  # printing requires $(string ...) to convert arrays to strings
   # println(SUBDIRS: $(string $(VISIT_SUBDIRS)))
 
   # The rule
 
 OPAMPrefix = $(shell opam config -var prefix)
 
+# We cannot remove ocamlfind
 CleanOPAMPackages() =
-    installed=$(shell opam list -installed | awk '$$2 !~ /(base|system|package)/ { print $$1 }')
+    installed=$(shell opam list -installed | awk '$$2 !~ /(base|system|package)/ && $$1 !~ /ocamlfind/ { print $$1 }')
     if $(gt $(length $(installed)), 0):
         println(Uninstalling OPAM packages: $(string $(installed)))
         opam --yes remove $(installed)