HOI4_randomchanges/Makefile
Aleksey Chubukov 1a9beba136 fix patching
2023-11-09 00:05:50 +04:00

18 lines
440 B
Makefile

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