fix patching

This commit is contained in:
Aleksey Chubukov 2023-11-09 00:05:50 +04:00
parent a0be653c9b
commit 1a9beba136

View File

@ -2,13 +2,16 @@ all: patch/tree/map/definition.csv
VANILLA_SRC ?= ../vanilla VANILLA_SRC ?= ../vanilla
patch/tree: patch/tree patch/work:
mkdir $@ mkdir $@
patch/tree/map: patch/tree patch/tree/map: patch/tree
mkdir $@ 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 $< $@ cp -v $< $@
patch/tree/map/definition.csv: patch/work/map_definition.csv patch/patches/map_definition.patch | patch/tree/map patch/tree/map/definition.csv: patch/work/map_definition.csv patch/patches/map_definition.patch | patch/tree/map
cp -v $< $@
patch -u --binary -N $^ patch -u --binary -N $^
cp -v $< $@
clean:
rm -rf patch/tree patch/work
.PHONY: all install clean