diff options
author | EuAndreh <eu@euandre.org> | 2023-04-05 18:58:34 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-04-05 18:59:22 -0300 |
commit | ffcc1ce80addf70ceba0a8d6b48bbef29024d75d (patch) | |
tree | a4c7dcb7be1b923b8f9a4ae168ef60f3ca21c2d2 /v2 | |
parent | v2: dynamic.mk: Smarter use of xargs+sed over xargs -> sh (diff) | |
download | euandre.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.mk | 4 |
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) |