File Makefile artifact 06110670ad part of check-in 113a27bd78


REFS=refs.bib
PROCBIB=docs/bib.md

.PHONY: publish clean serve purge
site: build

build: clean $(PROCBIB)
	mkdocs build
publish: build
	fossil uv add `find site`
	fossil uv sync
clean: 
	rm -f $(PROCBIB)
	find -name '*~' | xargs -r rm
serve:
	mkdocs serve
purge:
	fossil uv ls | xargs fossil uv rm {}
	rm -rf site/

$(PROCBIB): $(REFS)
	echo -e "# References\n" > $@
	pandoc -C $(REFS) \
	    -t markdown_strict >> $@