summaryrefslogtreecommitdiff
path: root/libcult/build/configuration-rules.make
diff options
context:
space:
mode:
Diffstat (limited to 'libcult/build/configuration-rules.make')
-rw-r--r--libcult/build/configuration-rules.make18
1 files changed, 18 insertions, 0 deletions
diff --git a/libcult/build/configuration-rules.make b/libcult/build/configuration-rules.make
new file mode 100644
index 0000000..e6df883
--- /dev/null
+++ b/libcult/build/configuration-rules.make
@@ -0,0 +1,18 @@
+# file : build/configuration-rules.make
+# author : Boris Kolpackov <boris@kolpackov.net>
+# copyright : Copyright (c) 2006-2010 Boris Kolpackov
+# license : GNU GPL v2; see accompanying LICENSE file
+
+$(dcf_root)/configuration-dynamic.make: | $(dcf_root)/.
+ $(call message,,$(scf_root)/configure $@)
+
+ifndef %foreign%
+
+disfigure::
+ $(call message,rm $$1,rm -f $$1,$(dcf_root)/configuration-dynamic.make)
+
+endif
+
+ifeq ($(.DEFAULT_GOAL),$(dcf_root)/configuration-dynamic.make)
+.DEFAULT_GOAL :=
+endif