GEMINI_ONLY = \ minetest-server \ matterbridge-in-tildeserver GEMINI_AND_HTML = \ index \ hello-world \ mine-guix-shell \ learning-guix-home all: $(addsuffix .html,$(GEMINI_ONLY) $(GEMINI_AND_HTML)) .PHONY: all %.html: %.gmi if printf %s '$(GEMINI_ONLY)' | grep -q $*; then \ ./convert_gemtext_file.py sorry-gemini-only.gmi > $@; \ else \ ./convert_gemtext_file.py $< > $@; \ fi clean: rm -rf *.html .PHONY: clean