Commits

camlspotter committed 5f3442a

my rule destroyed omake -P

  • Participants
  • Parent commits 0d932ba

Comments (0)

Files changed (2)

 # Tools for apt-get
 # =====================
 
+#| A flag to tell that we can use OMyApt functions
+WithOMyApt=true
+
 #| Installation check. Return the list of installed apt packages.
 #
 # .. note :: Users do not need to call this function. This is used to define $(InstalledAptPackages).
     export InstalledAptPackages
 
 #| Add dependencies over the apt $(packages) for the files created in the current directory.
-RequireAptPackages(packages) =
-    .apt-installed: :value: $(InstalledAptPackages)
-        section: 
-          println(Installing $(packages) in $(length $(InstalledAptPackages)))
-          InstallAptPackages($(packages))    
-          chan=$(fopen $@, w)
-          fprintln($(chan), $(string $(intersection $(packages), $(InstalledAptPackages))))
-          close($(chan))
-    .SCANNER: scan-%: .apt-installed
-    % : .apt-installed
-    export
+# BUG: This disables omake -P!
+# RequireAptPackages(packages) =
+#     .apt-installed: :value: $(InstalledAptPackages)
+#         section: 
+#           println(Installing $(packages) in $(length $(InstalledAptPackages)))
+#           InstallAptPackages($(packages))    
+#           chan=$(fopen $@, w)
+#           fprintln($(chan), $(string $(intersection $(packages), $(InstalledAptPackages))))
+#           close($(chan))
+#     .SCANNER: scan-%: .apt-installed
+#     % : .apt-installed
+#     export
+
+#| Installs the apt $(packages).
+RequireAptPackages(packages)= 
+    InstallAptPackages($(packages))
 # ==========================
 # Useful functions to build OCaml projects
 
+#| A flag to tell that we can use OMyMakefile functions
+WithOMy=true
+
 .PHONY: all install uninstall clean
 
 # Directories