g35pe2-ml-patch/Makefile

15 lines
299 B
Makefile

#! /usr/bin/env make -f
py = g35pe2_ml_patch.py
src = $(filter-out $(wildcard test/*-E2.g1a),$(wildcard test/*.g1a))
out = $(src:.g1a=-E2.g1a)
test: $(out)
test/%-E2.g1a: test/%.g1a $(py)
@echo -e "\n\e[33;1mPatching $<...\x1b[0m"
@ python $(py) $< $@
# Always redo all the tests
.PHONY: test