PREFIX ?= /usr/local INSTALL_DIR=$(PREFIX)/bin all: uglify | build arm32v7: uglify | libs crystal build src/mango.cr --release --progress --cross-compile --target='arm-linux-gnueabihf' uglify: yarn yarn uglify setup: libs yarn yarn gulp dev build: libs crystal build src/mango.cr --release --progress static: uglify | libs crystal build src/mango.cr --release --progress --static libs: shards install --production run: crystal run src/mango.cr --error-trace test: crystal spec check: crystal tool format --check ./bin/ameba ./dev/linewidth.sh 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