From c6f0697c2a24366b4688ae05197abd4fd9e456b5 Mon Sep 17 00:00:00 2001 From: Paolo 'Blaisorblade' Giarrusso Date: Thu, 28 Jul 2005 17:56:17 +0200 Subject: [PATCH] --- yaml --- r: 7251 b: refs/heads/master c: 49490571bcfe24d279a66ba24198e8ba299fe58f h: refs/heads/master i: 7249: 9d540bc88b6997afac616d933def5d9aed0ef8fb 7247: 4c28e86156a8771ba872ff9d13690efc3e3d257a v: v3 --- [refs] | 2 +- trunk/Documentation/kbuild/makefiles.txt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 4894f05b4deb..46d47edd0d10 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 61d9cdf2a9ccb9e4770d7723db8b18b8952778ce +refs/heads/master: 49490571bcfe24d279a66ba24198e8ba299fe58f diff --git a/trunk/Documentation/kbuild/makefiles.txt b/trunk/Documentation/kbuild/makefiles.txt index 2616a58a5a4b..9a1586590d82 100644 --- a/trunk/Documentation/kbuild/makefiles.txt +++ b/trunk/Documentation/kbuild/makefiles.txt @@ -872,7 +872,13 @@ When kbuild executes the following steps are followed (roughly): Assignments to $(targets) are without $(obj)/ prefix. if_changed may be used in conjunction with custom commands as defined in 6.7 "Custom kbuild commands". + Note: It is a typical mistake to forget the FORCE prerequisite. + Another common pitfall is that whitespace is sometimes + significant; for instance, the below will fail (note the extra space + after the comma): + target: source(s) FORCE + #WRONG!# $(call if_changed, ld/objcopy/gzip) ld Link target. Often LDFLAGS_$@ is used to set specific options to ld.