Skip to content

Commit

Permalink
Add makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ceritium committed Oct 31, 2018
1 parent 977214c commit 468ab43
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CRYSTAL_BIN ?= $(shell which crystal)
SHARDS_BIN ?= $(shell which shards)
FP_BIN ?= $(shell which fp)
PREFIX ?= /usr/local

build:
$(SHARDS_BIN) build --release $(CRFLAGS)
clean:
rm -f ./bin/fp ./bin/fp.dwarf
test: build
$(CRYSTAL_BIN) spec
install: build
mkdir -p $(PREFIX)/bin
cp ./bin/fp $(PREFIX)/bin
reinstall: build
cp ./bin/fp $(FP_BIN) -rf

0 comments on commit 468ab43

Please sign in to comment.