From c3166813c60a4243131a67487f6154e363f6230f Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Thu, 15 Aug 2024 11:08:47 +0300 Subject: [PATCH] update makefile to match new dir sctructure --- services/registration/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 services/registration/Makefile diff --git a/services/registration/Makefile b/services/registration/Makefile new file mode 100644 index 0000000..578ebc6 --- /dev/null +++ b/services/registration/Makefile @@ -0,0 +1,17 @@ +# Variables to match files in the current directory +INPUTS = $(wildcard ./*.vis) +TXTS = $(wildcard ./*.txt.orig) + +# Rule to build .bin files from .vis files +%.vis: + go run ../../go-vise/dev/asm $(basename $@).vis > $(basename $@).bin + @echo "Built $(basename $@).bin from $(basename $@).vis" + +# Rule to copy .orig files to .txt +%.txt.orig: + cp -v $(basename $@).orig $(basename $@) + @echo "Copied $(basename $@).orig to $(basename $@)" + +# 'all' target depends on all .vis and .txt.orig files +all: $(INPUTS) $(TXTS) + @echo "Running all: $(INPUTS) $(TXTS)"