Commits

camlspotter committed 5f3442a

my rule destroyed omake -P

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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.