-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 803 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# dummy-http/Makefile
.PHONY: test
# Aliases to everyday takss faster
b : build
r : run
s : setup
t : test
# Don't forget : Makefiles use tabs indentation, not spaces !
setup: ## Install crystal language and dependencies
@echo "Installing Crystal using Homebrew ..." && brew install crystal-lang
@echo "Installing Crystal dependencies ..." && shards
run: ## Run the app
@echo "Running application ..." && crystal run src/dummy_http.cr
build: ## Compile the app without optimizations
@echo "Compiling application ..." && crystal build src/dummy_http.cr
release: ## Compile the app for release (optimized binary)
@echo "Compiling application for release ..." && crystal build --release src/dummy_http.cr
test: ## Run the test suite
@echo "Running tests ..." && KEMAL_ENV=test crystal spec