25 lines
589 B
Makefile
25 lines
589 B
Makefile
PREFIX=/usr/local
|
|
INSTALLDIR=$(DESTDIR)$(PREFIX)
|
|
MANDIR=$(INSTALLDIR)/share/man
|
|
|
|
format:
|
|
./node_modules/prettier/bin-prettier.js --write gmi.css
|
|
./node_modules/prettier/bin-prettier.js --write cli.js
|
|
./node_modules/prettier/bin-prettier.js --write gmi.js
|
|
|
|
gmi-web.1: gmi-web.1.scd
|
|
scdoc < $< > $@
|
|
|
|
install: gmi-web.1
|
|
sudo npm link
|
|
install -Dm644 gmi-web.1 $(MANDIR)/man1/gmi-web.1
|
|
|
|
minify:
|
|
cat gmi.css | ./node_modules/minify/bin/minify.js --css > gmi.min.css
|
|
cat gmi.js | ./node_modules/minify/bin/minify.js --js > gmi.min.js
|
|
|
|
clean:
|
|
rm -rf gmi.min.* gmi-web.1
|
|
|
|
.PHONY: install
|