On 05/28/2013 03:33 PM, Johannes Berg wrote:
From: Johannes Berg <[email protected]>

Catch running make in the backport template directory by
checking for the .local-symbols file. If it isn't there
then we're in the input/template directory rather than in
an output tree, give the user a hint about it instead of
keeling over.

Signed-off-by: Johannes Berg <[email protected]>
---
  backport/Makefile | 12 ++++++++++++
  1 file changed, 12 insertions(+)

diff --git a/backport/Makefile b/backport/Makefile
index 287b27d..f0c7586 100644
--- a/backport/Makefile
+++ b/backport/Makefile
@@ -37,6 +37,18 @@ mrproper:
        @rm -f backport-include/backport/autoconf.h

  .DEFAULT:
+       @set -e ; test -f .local-symbols || (                                   
        \
+       echo "/--------------"                                                  
              ;\
+       echo "| You shouldn't run make in the backports tree, but only in"      
      ;\
+       echo "| the generated output. This here is only the skeleton code"      
      ;\
+       echo "| copied into the output directory. To use the backport system"   
      ;\
+       echo "| from scratch, go into the top-level directoroy and run"         
              ;\

=======================================================^ Typo here.

Larry

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to