Mango/Makefile

52 lines
891 B
Makefile
Raw Normal View History

2020-04-08 07:18:25 +00:00
PREFIX ?= /usr/local
2020-02-17 15:08:19 +00:00
INSTALL_DIR=$(PREFIX)/bin
all: uglify | build
uglify:
2020-02-17 01:50:44 +00:00
yarn
yarn uglify
2020-07-19 13:53:50 +00:00
setup: libs
yarn
yarn gulp dev
build: libs
crystal build src/mango.cr --release --progress --error-trace
2020-02-25 02:32:32 +00:00
static: uglify | libs
crystal build src/mango.cr --release --progress --static --error-trace
2020-02-25 02:32:32 +00:00
libs:
shards install --production
2020-02-14 03:36:00 +00:00
run:
crystal run src/mango.cr --error-trace
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:
crystal build src/mango.cr --release --progress --error-trace --cross-compile --target='arm-linux-gnueabihf' -o mango-arm32v7
arm64v8:
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