From 493f0002af887f372ea1798baa8f4cdc4e340cf5 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Wed, 3 Oct 2012 11:56:48 +0400 Subject: Added common target interdependencies --- README.md | 1 + rules/common.mk | 6 ++++++ 2 files changed, 7 insertions(+) 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 -- cgit v1.2.3