mirror of https://github.com/getmango/Mango.git
42 lines
544 B
Makefile
42 lines
544 B
Makefile
PREFIX ?= /usr/local
|
|
INSTALL_DIR=$(PREFIX)/bin
|
|
|
|
all: uglify | build
|
|
|
|
uglify:
|
|
yarn
|
|
yarn uglify
|
|
|
|
build: libs
|
|
crystal build src/mango.cr --release --progress
|
|
|
|
static: uglify | libs
|
|
crystal build src/mango.cr --release --progress --static
|
|
|
|
libs:
|
|
shards install
|
|
|
|
run:
|
|
crystal run src/mango.cr --error-trace
|
|
|
|
test:
|
|
crystal spec
|
|
|
|
check:
|
|
crystal tool format --check
|
|
./bin/ameba
|
|
|
|
install:
|
|
cp mango $(INSTALL_DIR)/mango
|
|
|
|
uninstall:
|
|
rm -f $(INSTALL_DIR)/mango
|
|
|
|
cleandist:
|
|
rm -rf dist
|
|
rm -f yarn.lock
|
|
rm -rf node_modules
|
|
|
|
clean:
|
|
rm -f mango
|