.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.$*/ 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 dotgeek: dot%: webring hugo --quiet --baseURL="https://xrvs.$*" --destination dot$* cv: git clone /var/lib/git/~xarvos/web-cv; rm -rf web-cv/.git; ${BUILD_CONLANGS}: build-%: 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,work-cv.pdf} dotnet/cv cp web-cv/{index.html,style.css,work-cv.pdf} dotgeek/cv