From: Mark Wooding Date: Sun, 5 May 2024 11:42:04 +0000 (+0100) Subject: Makefile: Use order-only prerequisite for making directories. X-Git-Tag: 1.0.0~4 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/distorted-dkim/commitdiff_plain/e745c3bb1b63aa1d3d2ee4557cb4815e6f1a7655?ds=sidebyside Makefile: Use order-only prerequisite for making directories. It looks cooler and involves running fewer processes in parallel builds. --- diff --git a/Makefile b/Makefile index 6e0ee10..2add093 100644 --- a/Makefile +++ b/Makefile @@ -68,10 +68,11 @@ all: $(TARGETS) clean::; rm -f $(TARGETS) ## Installation. +%/:; install -d $@ + INSTALLS = $(addprefix install/, $(INSTDIRS)) install: $(INSTALLS) -$(INSTALLS): install/%: $$($$*_FILES) - install -d $($*dir) +$(INSTALLS): install/%: $$($$*_FILES) | $$($$*dir)/ $($*_INSTCMD) $+ UNINSTALLS = $(addprefix uninstall/, $(INSTDIRS))