33 lines
1.3 KiB
Makefile
33 lines
1.3 KiB
Makefile
.PHONY: all build-go build-mojo clean run
|
|||
|
|
|
||
|
|
MOJO = /home/creserver/extras/.venv/bin/mojo
|
||
|
|
GO = /usr/bin/go
|
||
|
|
BIN = ./bin
|
||
|
|
|
||
|
|
all: build-go build-mojo
|
||
|
|
|
||
|
|
build-go:
|
||
|
|
@echo "Building Go binaries..."
|
||
|
|
$(GO) build -ldflags="-s -w" -o $(BIN)/nexus-gateway ./cmd/nexus-gateway/
|
||
|
|
$(GO) build -ldflags="-s -w" -o $(BIN)/image-merger ./cmd/image-merger/
|
||
|
|
$(GO) build -ldflags="-s -w" -o $(BIN)/bulk-api-tester ./cmd/bulk-api-tester/
|
||
|
|
$(GO) build -ldflags="-s -w" -o $(BIN)/json-suite ./cmd/json-suite/
|
||
|
|
$(GO) build -ldflags="-s -w" -o $(BIN)/json-image-downloader ./cmd/json-image-downloader/
|
||
|
|
$(GO) build -ldflags="-s -w" -o $(BIN)/image-hoster ./cmd/image-hoster/
|
||
|
|
$(GO) build -ldflags="-s -w" -o $(BIN)/png-frame-detector ./cmd/png-frame-detector/
|
||
|
|
$(GO) build -ldflags="-s -w" -o $(BIN)/facial-rotation-detector ./cmd/facial-rotation-detector/
|
||
|
|
$(GO) build -ldflags="-s -w" -o $(BIN)/image-manipulator ./cmd/image-manipulator/
|
||
|
|
@echo "Go build complete."
|
||
|
|
|
||
|
|
build-mojo:
|
||
|
|
@echo "Building Mojo modules..."
|
||
|
|
# $(MOJO) build mojo/image_ops/main.mojo -o $(BIN)/image-ops
|
||
|
|
# $(MOJO) build mojo/frame_detector/main.mojo -o $(BIN)/frame-detector
|
||
|
|
@echo "Mojo build complete."
|
||
|
|
|
||
|
|
run:
|
||
|
|
$(BIN)/nexus-gateway -config configs/tools.yaml
|
||
|
|
|
||
|
|
clean:
|
||
|
|
rm -rf $(BIN)/*
|