summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7cc4e494e8414a59ef241afb787a71dc2ab340d7 (plain)
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
# Build nova all-in-one bin
all:
	# Creates bin folder for artifacts
	@mkdir -p build/{bin,lib}
	
	# Builds rust
	@echo "Building rust project"
	cargo build --release
	ls target/
	@cp target/release/liball_in_one.a build/lib
	@cp target/release/{cache,gateway,ratelimit,rest,webhook} build/bin

	# Builds go
	go build -a -ldflags '-s' -o build/bin/nova cmd/nova/nova.go

docker-images:
	docker-compose build

docker-push:
	docker-compose push

rust-test:
	cargo test

test: rust-test

.PHONY: all docker-images docker-push test rust-test