aboutsummaryrefslogtreecommitdiff
path: root/v2
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-04-05 18:58:34 -0300
committerEuAndreh <eu@euandre.org>2023-04-05 18:59:22 -0300
commitffcc1ce80addf70ceba0a8d6b48bbef29024d75d (patch)
treea4c7dcb7be1b923b8f9a4ae168ef60f3ca21c2d2 /v2
parentv2: dynamic.mk: Smarter use of xargs+sed over xargs -> sh (diff)
downloadeuandre.org-ffcc1ce80addf70ceba0a8d6b48bbef29024d75d.tar.gz
euandre.org-ffcc1ce80addf70ceba0a8d6b48bbef29024d75d.tar.xz
v2: dynamic.mk: Use hardlinks over copies
Diffstat (limited to 'v2')
-rw-r--r--v2/dynamic.mk4
1 files changed, 2 insertions, 2 deletions
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)