aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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