Build the crystal way (with shards)
This commit is contained in:
parent
28caea3807
commit
9ff3997bac
4 changed files with 13 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
|||
/.bundle/
|
||||
/_build
|
||||
/bin
|
||||
/lib
|
||||
/.yardoc
|
||||
/_yardoc/
|
||||
|
|
8
Makefile
8
Makefile
|
@ -1,12 +1,16 @@
|
|||
|
||||
PROGNAME=noozoid
|
||||
BUILD_DIR=_build
|
||||
BUILD_DIR=bin
|
||||
|
||||
all: help
|
||||
|
||||
prepare: ## install dependencies
|
||||
mkdir -p $(BUILD_DIR)
|
||||
shards install
|
||||
|
||||
build: ## build binary
|
||||
mkdir -p $(BUILD_DIR)
|
||||
crystal build -o $(BUILD_DIR)/$(PROGNAME) src/main.cr
|
||||
shards build
|
||||
|
||||
test: ## test binary
|
||||
crystal spec
|
||||
|
|
|
@ -26,7 +26,7 @@ Build the project
|
|||
|
||||
In your terminal:
|
||||
|
||||
$ _build/noozoid
|
||||
$ bin/noozoid
|
||||
|
||||
### Keyboard control (vim-like)
|
||||
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
name: noozoid
|
||||
version: 0.1.0
|
||||
|
||||
|
||||
authors:
|
||||
- Glenn Y. Rolland <opensource@glenux.net>
|
||||
|
||||
targets:
|
||||
noozoid:
|
||||
main: src/main.cr
|
||||
|
||||
# description: |
|
||||
# Short description of ttymindmap
|
||||
|
||||
|
|
Loading…
Reference in a new issue