git: 885316d9e8 - main - build: slap fake targets with .PHONY

Kyle Evans <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by kevans (ports, src committer):

URL: https://cgit.FreeBSD.org/doc/commit/?id=885316d9e8d388a3a5b5d15972c9e81c46f918fb

commit 885316d9e8d388a3a5b5d15972c9e81c46f918fb
Author:     Kyle Evans <[email protected]>
AuthorDate: 2021-01-27 16:09:02 +0000
Commit:     Kyle Evans <[email protected]>
CommitDate: 2021-01-29 03:15:10 +0000

    build: slap fake targets with .PHONY
    
    This instructs make(1) to consider them always out of date, and prevents
    foot-shooting if a directory entry with the same name comes into existence.
    
    Reviewed-by:    gjb, hrs
    Differential-Revision:  https://reviews.freebsd.org/D28383
---
 documentation/Makefile | 10 +++++-----
 website/Makefile       | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/documentation/Makefile b/documentation/Makefile
index 60b89da0ed..a09a995c11 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -19,22 +19,22 @@ LANGUAGES =	en,es,pt-br,de,ja,zh-cn,zh-tw,ru,el,hu,it,mn,nl,pl,fr
 .ORDER: generate-books-toc build
 
 all: starting-message generate-books-toc run
-generate: starting-message generate-books-toc build
+generate: starting-message generate-books-toc build .PHONY
 
-starting-message:
+starting-message: .PHONY
 	@echo ---------------------------------------------------------------
 	@echo                   Building the documentation
 	@echo ---------------------------------------------------------------
 
-generate-books-toc:
+generate-books-toc: .PHONY
 	${PYTHON_CMD} ./tools/books-toc-parts-creator.py -l ${LANGUAGES}
 	${PYTHON_CMD} ./tools/books-toc-creator.py -l ${LANGUAGES}
 	${PYTHON_CMD} ./tools/books-toc-figures-creator.py -l ${LANGUAGES}
 	${PYTHON_CMD} ./tools/books-toc-tables-creator.py -l ${LANGUAGES}
 	${PYTHON_CMD} ./tools/books-toc-examples-creator.py -l ${LANGUAGES}
 
-run:
+run: .PHONY
 	${HUGO_CMD} server -D
 
-build:
+build: .PHONY
 	${HUGO_CMD} --minify
diff --git a/website/Makefile b/website/Makefile
index 6e859536b9..85b00f6df8 100644
--- a/website/Makefile
+++ b/website/Makefile
@@ -18,18 +18,18 @@ HUGO_CMD =	/usr/local/bin/hugo
 .ORDER: generate-books-toc build
 
 all: starting-message generate-releases run
-generate: starting-message generate-releases build
+generate: starting-message generate-releases build .PHONY
 
-starting-message:
+starting-message: .PHONY
 	@echo ---------------------------------------------------------------
 	@echo                   Building the website
 	@echo ---------------------------------------------------------------
 
-generate-releases:
+generate-releases: .PHONY
 	${PYTHON_CMD} ./tools/releases-toml.py -p ./shared/releases.adoc
 
-run:
+run: .PHONY
 	${HUGO_CMD} server -D
 
-build:
+build: .PHONY
 	${HUGO_CMD}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.