From 1a9beba13670559a0ad3ef90215b45fe35ca93de Mon Sep 17 00:00:00 2001 From: Aleksey Chubukov Date: Thu, 9 Nov 2023 00:05:50 +0400 Subject: [PATCH] fix patching --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4fb183e..d705807 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,16 @@ all: patch/tree/map/definition.csv VANILLA_SRC ?= ../vanilla -patch/tree: +patch/tree patch/work: mkdir $@ patch/tree/map: patch/tree mkdir $@ -patch/work/map_definition.csv: $(VANILLA_SRC)/map/definition.csv +patch/work/map_definition.csv: $(VANILLA_SRC)/map/definition.csv | patch/work cp -v $< $@ patch/tree/map/definition.csv: patch/work/map_definition.csv patch/patches/map_definition.patch | patch/tree/map - cp -v $< $@ patch -u --binary -N $^ + cp -v $< $@ +clean: + rm -rf patch/tree patch/work +.PHONY: all install clean