2020-04-08 07:18:25 +00:00
|
|
|
PREFIX ?= /usr/local
|
2020-02-17 15:08:19 +00:00
|
|
|
INSTALL_DIR=$(PREFIX)/bin
|
|
|
|
|
2020-02-17 02:15:44 +00:00
|
|
|
all: uglify | build
|
|
|
|
|
|
|
|
uglify:
|
2020-02-17 01:50:44 +00:00
|
|
|
yarn
|
|
|
|
yarn uglify
|
2020-02-17 02:15:44 +00:00
|
|
|
|
|
|
|
build: libs
|
2020-02-14 03:36:00 +00:00
|
|
|
crystal build src/mango.cr --release --progress
|
2020-02-17 02:15:44 +00:00
|
|
|
|
2020-02-25 02:32:32 +00:00
|
|
|
static: uglify | libs
|
|
|
|
crystal build src/mango.cr --release --progress --static
|
|
|
|
|
2020-02-17 02:15:44 +00:00
|
|
|
libs:
|
|
|
|
shards install
|
|
|
|
|
2020-02-14 03:36:00 +00:00
|
|
|
run:
|
|
|
|
crystal run src/mango.cr --error-trace
|
2020-02-17 02:15:44 +00:00
|
|
|
|
2020-02-25 19:00:10 +00:00
|
|
|
test:
|
|
|
|
crystal spec
|
|
|
|
|
2020-04-08 06:40:39 +00:00
|
|
|
check:
|
2020-04-08 07:18:25 +00:00
|
|
|
crystal tool format --check
|
|
|
|
./bin/ameba
|
2020-04-08 06:40:39 +00:00
|
|
|
|
2020-02-17 15:08:19 +00:00
|
|
|
install:
|
|
|
|
cp mango $(INSTALL_DIR)/mango
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f $(INSTALL_DIR)/mango
|
|
|
|
|
|
|
|
cleandist:
|
2020-02-17 01:50:44 +00:00
|
|
|
rm -rf dist
|
2020-02-17 15:08:19 +00:00
|
|
|
rm -f yarn.lock
|
2020-02-17 01:50:44 +00:00
|
|
|
rm -rf node_modules
|
2020-02-17 15:08:19 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f mango
|