Create build dir if missing
This commit is contained in:
parent
637861a39e
commit
a983a89bb8
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -1,10 +1,12 @@
|
|||
|
||||
PROGNAME=happy-send
|
||||
BUILD_DIR=_build
|
||||
|
||||
all: help
|
||||
|
||||
build: # ## build binary
|
||||
crystal build -o _build/$(PROGNAME) src/main.cr
|
||||
mkdir -p $(BUILD_DIR)
|
||||
crystal build -o $(BUILD_DIR)/$(PROGNAME) src/main.cr
|
||||
|
||||
help: ## print this help
|
||||
@echo "Usage: make <target>"
|
||||
|
|
Loading…
Reference in a new issue