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/
|
/.bundle/
|
||||||
/_build
|
/_build
|
||||||
|
/bin
|
||||||
/lib
|
/lib
|
||||||
/.yardoc
|
/.yardoc
|
||||||
/_yardoc/
|
/_yardoc/
|
||||||
|
|
8
Makefile
8
Makefile
|
@ -1,12 +1,16 @@
|
||||||
|
|
||||||
PROGNAME=noozoid
|
PROGNAME=noozoid
|
||||||
BUILD_DIR=_build
|
BUILD_DIR=bin
|
||||||
|
|
||||||
all: help
|
all: help
|
||||||
|
|
||||||
|
prepare: ## install dependencies
|
||||||
|
mkdir -p $(BUILD_DIR)
|
||||||
|
shards install
|
||||||
|
|
||||||
build: ## build binary
|
build: ## build binary
|
||||||
mkdir -p $(BUILD_DIR)
|
mkdir -p $(BUILD_DIR)
|
||||||
crystal build -o $(BUILD_DIR)/$(PROGNAME) src/main.cr
|
shards build
|
||||||
|
|
||||||
test: ## test binary
|
test: ## test binary
|
||||||
crystal spec
|
crystal spec
|
||||||
|
|
|
@ -26,7 +26,7 @@ Build the project
|
||||||
|
|
||||||
In your terminal:
|
In your terminal:
|
||||||
|
|
||||||
$ _build/noozoid
|
$ bin/noozoid
|
||||||
|
|
||||||
### Keyboard control (vim-like)
|
### Keyboard control (vim-like)
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
name: noozoid
|
name: noozoid
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
|
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- Glenn Y. Rolland <opensource@glenux.net>
|
- Glenn Y. Rolland <opensource@glenux.net>
|
||||||
|
|
||||||
|
targets:
|
||||||
|
noozoid:
|
||||||
|
main: src/main.cr
|
||||||
|
|
||||||
# description: |
|
# description: |
|
||||||
# Short description of ttymindmap
|
# Short description of ttymindmap
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue