~anjan/sxmo.org

ref: 93f55dc14316150b9588d2195943060a9c978304 sxmo.org/Makefile -rw-r--r-- 457 bytes
93f55dc1Maarten van Gompel images didn't always get copied well 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
MY_DIR := $(realpath ./)

build:
	[ -e ./src/docs/index.md ] || ln -s $(MY_DIR)/src/docs/README.md $(MY_DIR)/src/docs/index.md # fix index link on docs
	sed 's/(https:\/\/git.sr.ht\/\~mil\/sxmo-docs\/tree\/master/(\/docs/g; s/.md)/.html)/g' -i src/docs/*.md # fix internal links in documentation
	mkdir -p dst
	./ssg6 src dst 'Simple X Mobile' 'https://sxmo.org'
	cp -f srg/img/* dst/img/

run: build
	cd dst && python3 -m http.server 8000 --bind 127.0.0.1