summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-04-18 03:10:22 -0300
committerEuAndreh <eu@euandre.org>2025-04-18 03:19:54 -0300
commitbfa0d2c61d31553f18733ed1e146d8d56039b3b5 (patch)
treea4d37d785eb7702101626f0d8b22e1e9aadf5d2c /Makefile
parentgit mv src/content/* src/content/en/ (diff)
downloadeuandre.org-bfa0d2c61d31553f18733ed1e146d8d56039b3b5.tar.gz
euandre.org-bfa0d2c61d31553f18733ed1e146d8d56039b3b5.tar.xz
Makefile: Generate .gitignore and $(side-assets) list for symlinks
Diffstat (limited to '')
-rw-r--r--Makefile25
1 files changed, 9 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 23b7c00..454db65 100644
--- a/Makefile
+++ b/Makefile
@@ -176,13 +176,14 @@ derived-assets = \
src/content/.well-known/security.txt \
src/all-contents.txt \
src/all-filelists.txt \
+ src/all-symlinks.txt \
src/install.txt \
src/sort-expected.txt \
src/sort-given.txt \
src/sources.txt \
install.txt \
sources.txt \
- redirect-symlinks.sentinel \
+ src/content/.gitignore \
side-assets = \
src/collections/*/*/*/*/*.html.*.txt \
@@ -194,21 +195,11 @@ side-assets = \
src/collections/*/*.sortdata \
src/pages/*/*.html.*.txt \
src/content/.well-known/ \
+ `cat src/all-symlinks.txt 2>/dev/null` \
src/content/css/ \
- src/content/en/favicon.ico \
src/content/favicon/ \
- src/content/static/ \
src/content/images/ \
- src/content/public.asc \
- src/content/public-key.txt \
- src/content/atom.xml \
- src/content/feed.xml \
- src/content/rss.xml \
- src/content/feed.atom \
- src/content/feed.en.atom \
- src/content/feed.blog.en.atom \
- src/content/feed.articles.en.atom \
- src/content/feed.til.en.atom \
+ src/content/static/ \
@@ -222,9 +213,8 @@ $(derived-assets): Makefile deps.mk
$(sources.conf): src/global.conf src/headers.txt
-redirect-symlinks.sentinel: src/symlinks.txt
- cd src/content/ && mkwb symlinks ../symlinks.txt
- touch $@
+src/content/.gitignore: src/symlinks.txt
+ cd src/content/ && mkwb symlinks ../symlinks.txt > $(@F)
src/dyn.conf: email.txt baseurl.txt fingerprint.txt
printf "export url_pre='%s'\n" "`cat baseurl.txt`" > $@
@@ -314,6 +304,9 @@ src/all-contents.txt:
src/all-filelists.txt:
printf '%s\n' $(all-filelists) > $@
+src/all-symlinks.txt: src/content/.gitignore
+ sed 's|^|src/content|' src/content/.gitignore > $@
+
src/install.txt: src/all-contents.txt src/all-filelists.txt $(all-filelists)
cat src/all-contents.txt `cat src/all-filelists.txt` > $@