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 release.zip build release: build release.zip build: mkdir $@ raw_requsites := common descriptor.mod gfx history interface localisation patched_requisites := patch/tree/map build/randchgs: $(raw_requsites) $(patched_requisites) | build mkdir -p $@ cp -r -t $@ $(raw_requsites) cp -r -t $@ $(patched_requisites) release.zip: build/randchgs zip -r $@ build .PHONY: all release clean