2026-10-26 11:17:13 +05:30
|
|
|
.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/
|
2026-10-29 12:39:10 +05:30
|
|
|
$(GO) build -ldflags="-s -w" -o $(BIN)/image-to-text ./cmd/image-to-text/
|
2026-10-26 11:17:13 +05:30
|
|
|
@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)/*
|