From 065bd090cdde0427d7b45a0a23e7823cd2fc8fb4 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 23 Jan 2025 07:36:32 -0800 Subject: [PATCH] More clarification in guidelines wrt rule 17 --- next/guidelines.html | 10 +++++++++- next/guidelines.md | 20 +++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/next/guidelines.html b/next/guidelines.html index 97a1d4174..dbb8d1a33 100644 --- a/next/guidelines.html +++ b/next/guidelines.html @@ -1371,7 +1371,15 @@ it will remove files that are not under git(1) control! Instead, se clobber rule in the example Makefile to see how to manage this.

-Do NOT rely on these tools for any other rule, either. +In other words, for make clobber, do something like: +

+
    clobber:
+            ${RM} -f foo bar baz
+

and NOT something like this:

+
    clobber:
+            -git clean -f
+

+And do NOT use git for any other tool either.

Jump to: top

diff --git a/next/guidelines.md b/next/guidelines.md index 277436f17..be5ace028 100644 --- a/next/guidelines.md +++ b/next/guidelines.md @@ -1200,9 +1200,27 @@ it will remove files that are not under `git(1)` control! Instead, see the

-Do **NOT** rely on these tools for any other rule, either. +In other words, for `make clobber`, do something like:

+ +``` + clobber: + ${RM} -f foo bar baz +``` + +and **NOT** something like this: + +``` + clobber: + -git clean -f +``` + +

+And do **NOT** use `git` for any other tool either. +

+ + Jump to: [top](#)