~anjan/sxmo.org

ref: 70eafd724488a3ca949c539c99c34266b275214f sxmo.org/Makefile -rw-r--r-- 457 bytes
70eafd72Ryan Raymond Changed submodule source from rw to read-only repo so anyone can build website 10 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 src/img/* dst/img/

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