Create build dir if missing

This commit is contained in:
Glenn Y. Rolland 2021-01-01 20:15:29 +01:00
parent 637861a39e
commit a983a89bb8

View file

@ -1,10 +1,12 @@
PROGNAME=happy-send PROGNAME=happy-send
BUILD_DIR=_build
all: help all: help
build: # ## build binary 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 help: ## print this help
@echo "Usage: make <target>" @echo "Usage: make <target>"