gmi-web/Makefile
2021-01-29 06:15:23 +00:00

23 lines
491 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 *.js !*.min.js
gmi.min.css: gmi.css
cat $< | ./node_modules/minify/bin/minify.js --css > $@
gmi-web.1: gmi-web.1.scd
scdoc < $< > $@
install: gmi.min.css gmi-web.1
sudo npm link
install -Dm644 gmi-web.1 $(MANDIR)/man1/gmi-web.1
clean:
rm -rf gmi.min.* gmi-web.1
.PHONY: install clean