From 5c3ab096b102872ceba3548499cc6e7f1b1de162 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 2 Oct 2012 22:20:32 +0400 Subject: Describe targets in common.mk --- README.md | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4f62eb3..4e2eb7f 100644 --- a/README.md +++ b/README.md @@ -31,17 +31,29 @@ and it should not be included directly, unless you are doing something really sp ### Targets provided by common.mk -All targets provided by this module are abstract and do nothing. Other modules extend -these targets. Each target (but `clean`) has its annex `target-stamp` which does +All targets (but `clean`) provided by this module are abstract and do nothing. Other modules extend +these targets. Each target has its annex `target-stamp` which does the real job. Each `*-stamp` is a file created with `touch` command. All internal dependencies are implemented through these "stamps", but developer can use only basename for target, e. g. `make unpack` instead of `make unpack-stamp`. -* `unpack` - -* `patch` - -* `configure` - -* `build` - -* `install` - +Meaning of these targets depends on other included modules: + +* `unpack` - put sources into the source directory (`./work/source` by default), +* `patch` - modify sources, +* `configure` - configure sources, e. g. execute GNU configure or CMake, +* `build` - build sources, e. g. compile with C compiler, +* `install` - install files into proto directory. +* `clean` - remove all stamps and working directory (`./work` by default) + + +`clean` has [double-colon rule](http://www.gnu.org/software/make/manual/html_node/Double_002dColon.html) +and by default it is: + + clean:: + rm -f *-stamp + rm -rf $(workdir) + ## ips.mk -- cgit v1.2.3