summaryrefslogtreecommitdiff
path: root/abdul-blog/Makefile
blob: efa6127d310f8b1e047f1807d951593b1e2d2a90 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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