# The url the site is served from, without a trailing slash.
URL = https://dflund.se/~getz

all:
	./bin/mkws $(URL)

# rebuild every page
force:
	./bin/mkws -f $(URL)

# remove everything mkws generated, the gallery thumbnails included
clean:
	find . -name '*.html' ! -path './pastes/*' ! -path './ARM/*' ! -path './Zverige/*' -delete
	find . -type d -name thumbnails -prune -exec rm -rf {} +
	rm -rf sitemap.xml Notes/rss.xml Notes/ascii

.PHONY: all force clean
