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-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