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
|
|
|
|
2020-07-19 13:53:50 +00:00
|
|
|
setup: libs
|
|
|
|
yarn
|
|
|
|
yarn gulp dev
|
|
|
|
|
2020-02-17 02:15:44 +00:00
|
|
|
build: libs
|
2020-08-10 13:14:05 +00:00
|
|
|
crystal build src/mango.cr --release --progress --error-trace
|
2020-02-17 02:15:44 +00:00
|
|
|
|
2020-02-25 02:32:32 +00:00
|
|
|
static: uglify | libs
|
2020-08-10 13:14:05 +00:00
|
|
|
crystal build src/mango.cr --release --progress --static --error-trace
|
2020-02-25 02:32:32 +00:00
|
|
|
|
2020-02-17 02:15:44 +00:00
|
|
|
libs:
|
2020-05-29 16:23:48 +00:00
|
|
|
shards install --production
|
2020-02-17 02:15:44 +00:00
|
|
|
|
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-08-04 17:24:13 +00:00
|
|
|
arm32v7:
|
2020-08-10 13:14:05 +00:00
|
|
|
crystal build src/mango.cr --release --progress --error-trace --cross-compile --target='arm-linux-gnueabihf' -o mango-arm32v7
|
2020-08-05 09:48:03 +00:00
|
|
|
|
|
|
|
arm64v8:
|
2020-08-10 13:14:05 +00:00
|
|
|
crystal build src/mango.cr --release --progress --error-trace --cross-compile --target='aarch64-linux-gnu' -o mango-arm64v8
|
2020-08-04 17:24:13 +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
|