diff options
| author | icecodder <git@icecodder.me> | 2023-01-14 17:32:17 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-14 17:32:17 +0100 | 
| commit | e024b4ce33b9c76995eee68fc433812dc0bb722a (patch) | |
| tree | 2afae342602685deb4579b977d9b746ddde5ff9a | |
| parent | 64f83235c128772bc6296eaf6e6a261f35535f6f (diff) | |
os agnostic ????
| -rw-r--r-- | Makefile | 14 | 
1 files changed, 9 insertions, 5 deletions
@@ -3,15 +3,19 @@ build/{bin,lib}:  	@mkdir -p build/{lib,bin}  # Builds all rust targets +ifeq ($(OS),Windows_NT)  build/lib/liball_in_one.a build/bin/{cache,gateway,ratelimit,rest,webhook}{,.exe}: build/{bin,lib}  	@echo "Building rust project"  	cargo build --release  	@cp target/release/liball_in_one.a build/lib -	ifeq ($(OS),Windows_NT)  -		@cp target/release/{cache,gateway,ratelimit,rest,webhook}{,.exe} build/bin || true -	else -		@cp target/release/{cache,gateway,ratelimit,rest,webhook} build/bin || true -	endif +	@cp target/release/{cache,gateway,ratelimit,rest,webhook}{,.exe} build/bin +endif + +build/lib/liball_in_one.a build/bin/{cache,gateway,ratelimit,rest,webhook}: build/{bin,lib} +	@echo "Building rust project" +	cargo build --release +	@cp target/release/liball_in_one.a build/lib +	@cp target/release/{cache,gateway,ratelimit,rest,webhook} build/bin  # Generated by a rust build script.  internal/pkg/all-in-one/all-in-one.h: build/lib/liball_in_one.a  | 
