86e9e8b660
add test
24 lines
523 B
Makefile
24 lines
523 B
Makefile
build: format gmi.min.css gmi-web.1 gmi.css.5
|
|
|
|
gmi-web.1: gmi-web.1.scd
|
|
scdoc < $< > $@
|
|
|
|
gmi.min.css: gmi.css
|
|
cat $< | ./node_modules/minify/bin/minify.js --css > $@
|
|
|
|
gmi.css.5: gmi.css.5.scd
|
|
scdoc < $< > $@
|
|
|
|
format:
|
|
./node_modules/prettier/bin-prettier.js --write README.md
|
|
./node_modules/prettier/bin-prettier.js --write gmi.css
|
|
./node_modules/prettier/bin-prettier.js --write *.js !*.min.js
|
|
|
|
example/test.html: example/test.gmi
|
|
./test.sh
|
|
|
|
clean:
|
|
rm -rf gmi.min.* gmi-web.1 node_modules
|
|
|
|
.PHONY: clean format
|