2024-08-15 10:08:47 +02:00
|
|
|
# Variables to match files in the current directory
|
|
|
|
INPUTS = $(wildcard ./*.vis)
|
|
|
|
TXTS = $(wildcard ./*.txt.orig)
|
|
|
|
|
|
|
|
# Rule to build .bin files from .vis files
|
|
|
|
%.vis:
|
2024-09-05 21:35:51 +02:00
|
|
|
go run ../../go-vise/dev/asm/main.go -f pp.csv $(basename $@).vis > $(basename $@).bin
|
2024-08-15 10:08:47 +02:00
|
|
|
@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)"
|