aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2012-10-03 11:56:48 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2012-10-03 11:56:48 +0400
commit493f0002af887f372ea1798baa8f4cdc4e340cf5 (patch)
treee21d248d9a89235f5eb631facb7cc012312c07d6
parent5c3ab096b102872ceba3548499cc6e7f1b1de162 (diff)
downloadcibs-493f0002af887f372ea1798baa8f4cdc4e340cf5.tar.gz
Added common target interdependencies
-rw-r--r--README.md1
-rw-r--r--rules/common.mk6
2 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4e2eb7f..e80b779 100644
--- a/README.md
+++ b/README.md
@@ -46,6 +46,7 @@ Meaning of these targets depends on other included modules:
* `install` - install files into proto directory.
* `clean` - remove all stamps and working directory (`./work` by default)
+Each target in the list above depends on previous target. Yes, except `clean`.
`clean` has [double-colon rule](http://www.gnu.org/software/make/manual/html_node/Double_002dColon.html)
and by default it is:
diff --git a/rules/common.mk b/rules/common.mk
index eb003ee..bea0aeb 100644
--- a/rules/common.mk
+++ b/rules/common.mk
@@ -85,6 +85,12 @@ destdir = $(destdir.$(bits))
check-build-dep-stamp unpack-stamp patch-stamp pre-configure-stamp configure-stamp build-stamp install-stamp:
touch $@
+install-stamp : build-stamp
+build-stamp : configure-stamp
+configure-stamp : patch-stamp
+patch-stamp : unpack-stamp
+unpack-stamp : check-build-dep-stamp
+
# Common target to use from command line
# or in component top-level Makefile:
unpack : unpack-stamp