From 2cc726f84b9a3b7c1c5a963b5adf840ba38754fe Mon Sep 17 00:00:00 2001 From: Björn Persson Date: Fri, 18 Oct 2013 17:16:32 +0200 Subject: Wrote a pattern rule for making directories. --- manual.en.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'manual.en.html') diff --git a/manual.en.html b/manual.en.html index fbeb65c..e54dda0 100755 --- a/manual.en.html +++ b/manual.en.html @@ -520,6 +520,19 @@ root of the source tree. Here's an example:

for Source_Dirs use ($Srcdir & "/tools");
+

Writing Make Rules

+ +

Making Directories

+ +

There is no need to write rules to make directories. Comfignat has a pattern +rule that matches all pathnames that end with a slash, and creates the +directory and its ancestors. Just specify the directory as an order-only +prerequisite and be sure to append a slash. This rule ensures that the +directory data exists before the file db is written:

+ +
${stage_statedir}/example/data/db: | ${stage_statedir}/example/data/
+	echo stuff > $@
+

Make Targets

These phony targets are defined in comfignat.mk:

@@ -627,6 +640,8 @@ working in subdirectories use the right build and staging directories.

  • The ability to save environment variables in the persistent configuration was added.

  • +
  • The pattern rule for making directories was added.

  • +
  • The Make targets all, base and show_configuration were added.

  • -- cgit v1.2.3