From ffcc1ce80addf70ceba0a8d6b48bbef29024d75d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 5 Apr 2023 18:58:34 -0300 Subject: v2: dynamic.mk: Use hardlinks over copies --- v2/dynamic.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'v2') diff --git a/v2/dynamic.mk b/v2/dynamic.mk index 77636db..528f251 100644 --- a/v2/dynamic.mk +++ b/v2/dynamic.mk @@ -57,13 +57,13 @@ content = \ public-copy-content.sentinel: $(content) public-content-mkdir.sentinel echo $? | tr ' ' '\n' | grep '^src/content/' | sed 's|^src/content/||' | \ - xargs -P`nproc` -I% cp src/content/% public/% + xargs -P`nproc` -I% ln -f src/content/% public/% touch $@ public-copy-code-snippets.sentinel: $(all-generated.snippets) public-content-mkdir.sentinel echo $? | tr ' ' '\n' | grep '^src/content/' | \ xargs sed 's|^src/content/||' | \ - xargs -P`nproc` -I% cp src/content/% public/% + xargs -P`nproc` -I% ln -f src/content/% public/% touch $@ public-content-mkdir.sentinel: $(content) $(all-generated.snippets) -- cgit v1.2.3