From 156511e4992f866312f01f75727e930c4108bcfd Mon Sep 17 00:00:00 2001 From: lash Date: Tue, 21 Jan 2025 08:16:46 +0000 Subject: [PATCH] Build vise-asm binary in makefile --- services/registration/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/services/registration/Makefile b/services/registration/Makefile index 80bbba2..66b64a1 100644 --- a/services/registration/Makefile +++ b/services/registration/Makefile @@ -4,8 +4,8 @@ TXTS = $(wildcard ./*.txt.orig) VISE_PATH := ../../go-vise # Rule to build .bin files from .vis files -%.vis: - go run $(VISE_PATH)/dev/asm/main.go -f pp.csv $(basename $@).vis > $(basename $@).bin +%.vis: buildasm + ./vise-asm -f pp.csv $(basename $@).vis > $(basename $@).bin @echo "Built $(basename $@).bin from $(basename $@).vis" # Rule to copy .orig files to .txt @@ -19,5 +19,10 @@ all: $(INPUTS) $(TXTS) clean: rm -vf *.bin + rm -vf ./vise-asm + +buildasm: + go build -v -o ./vise-asm $(VISE_PATH)/dev/asm/main.go + .PHONY: clean