user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] doc: avoid redundant mkdir(1) calls
@ 2019-09-30 21:53 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2019-09-30 21:53 UTC (permalink / raw)
  To: meta

GNU make has order-only prerequisites, so use it to avoid
redundant mkdir(1) calls since our homepage requires GNU
make to build anyways.
---
 Documentation/include.mk | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Documentation/include.mk b/Documentation/include.mk
index 8501adc8..9a132962 100644
--- a/Documentation/include.mk
+++ b/Documentation/include.mk
@@ -125,8 +125,10 @@ gz_xdocs := $(addsuffix .gz, $(xdocs) $(xdocs_html))
 rsync_xdocs := $(gz_xdocs) $(xdocs_html) $(xdocs)
 xdoc: $(xdocs) $(xdocs_html)
 
-Documentation/.x/%.txt::
-	@-mkdir -p $(@D)
+Documentation/.x:
+	mkdir -p $@
+
+Documentation/.x/%.txt :: | Documentation/.x
 	$(PERL) -w Documentation/extman.perl $@ >$@+
 	mv $@+ $@
 
-- 
EW


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-30 21:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-30 21:53 [PATCH] doc: avoid redundant mkdir(1) calls Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).