- make install/uninstall

This commit is contained in:
Alex Ling 2020-02-17 15:08:19 +00:00
parent 0d2ec7daa4
commit 631feb5cf9

View File

@ -1,3 +1,6 @@
PREFIX=/usr/local
INSTALL_DIR=$(PREFIX)/bin
all: uglify | build
uglify:
@ -13,7 +16,16 @@ libs:
run:
crystal run src/mango.cr --error-trace
clean:
install:
cp mango $(INSTALL_DIR)/mango
uninstall:
rm -f $(INSTALL_DIR)/mango
cleandist:
rm -rf dist
rm yarn.lock
rm -f yarn.lock
rm -rf node_modules
clean:
rm -f mango