about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2024-02-05 11:30:30 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2024-02-26 16:33:20 +0700
commit12f0a8cf1b6742c0be39021dcbc61eed0c7fa2f9 (patch)
tree36163e556942566818b332df16c34f162ddf7d14
parentc929a5c40662602a4204e1b100af3546216f9bc9 (diff)
downloadblog-12f0a8cf1b6742c0be39021dcbc61eed0c7fa2f9.tar.gz
Update build
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8dfaca6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,35 @@
+.PHONY: all
+CONLANGS=haasdaiga ravna isanercent djanzi
+BUILD_CONLANGS := $(addprefix build-,${CONLANGS})
+PACKAGE_CONLANGS := $(addprefix package-,${CONLANGS})
+all: install-dotnet install-dotgeek
+
+install-geek install-net: install-%: package-cv ${PACKAGE_CONLANGS}
+	rsync -avh --delete dot$* /var/lib/www/xrvs.$*
+
+
+webring:
+	git clone /var/lib/git/~cnx/fead;
+	python3 fead/src/fead.py -l 100 -F feeds -t webring.template -o layouts/partials/webring-articles.html
+
+dotnet: webring
+	hugo --baseURL="https://xrvs.net" --destination dotnet
+
+dotgeek: webring
+	hugo --baseURL="https://xrvs.geek" --destination dotgeek
+
+cv:
+	git clone /var/lib/git/~xarvos/web-cv
+
+${BUILD_CONLANGS}: build-%:
+	git clone /var/lib/git/~xarvos/conlangs/$*;
+	cd $* && mdbook build
+
+${PACKAGE_CONLANGS}: package-%:
+	cp -r $*/book dotnet/$*;
+	cp -r $*/book dotgeek/$*;
+
+package-cv:
+	cp -r web-cv dotnet/cv
+	cp -r web-cv dotgeek/cv
+