about summary refs log tree commit diff
path: root/Makefile
blob: 8dfaca654025f20f6e25610b6273b41ff5a650e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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