about summary refs log tree commit diff
path: root/Makefile
blob: b6fbebe0ab04c1432a688dc8018f109bcb007f05 (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
36
37
38
39
40
.PHONY: all
CONLANGS=haasdaiga ravna isanercent djanzi
BUILD_CONLANGS := $(addprefix build-,${CONLANGS})
PACKAGE_CONLANGS := $(addprefix package-,${CONLANGS})
all: install-net install-geek

install-geek install-net: install-%: package-cv ${PACKAGE_CONLANGS}
	rsync -ah --delete --inplace dot$*/ /var/lib/www/xrvs.$*/

clean:
	rm -rf ${CONLANGS} web-cv dotnet dotgeek

webring: clean
	fead -l 100 -F feeds -t webring.template -o layouts/partials/webring-articles.html

dotnet: webring
	hugo --quiet --baseURL="https://xrvs.net" --destination dotnet

dotgeek: webring
	hugo --quiet --baseURL="http://xrvs.geek" --destination dotgeek

cv: clean
	git clone /var/lib/git/~xarvos/web-cv;
	rm -rf web-cv/.git;

${BUILD_CONLANGS}: build-%: clean
	git clone /var/lib/git/~xarvos/conlangs/$*;
	cd $* && mdbook build

build: dotnet dotgeek ${BUILD_CONLANGS}

${PACKAGE_CONLANGS}: package-%: build
	cp -r $*/book dotnet/$*
	cp -r $*/book dotgeek/$*

package-cv: dotnet dotgeek cv
	mkdir {dotnet,dotgeek}/cv;
	cp web-cv/{index.html,style.css,cv.pdf} dotnet/cv
	cp web-cv/{index.html,style.css,cv.pdf} dotgeek/cv