2023-11-08 19:40:04 +00:00
|
|
|
all: patch/tree/map/definition.csv
|
|
|
|
|
|
|
|
VANILLA_SRC ?= ../vanilla
|
|
|
|
|
2023-11-08 20:05:50 +00:00
|
|
|
patch/tree patch/work:
|
2023-11-08 19:40:04 +00:00
|
|
|
mkdir $@
|
|
|
|
patch/tree/map: patch/tree
|
|
|
|
mkdir $@
|
2023-11-08 20:05:50 +00:00
|
|
|
patch/work/map_definition.csv: $(VANILLA_SRC)/map/definition.csv | patch/work
|
2023-11-08 19:40:04 +00:00
|
|
|
cp -v $< $@
|
|
|
|
patch/tree/map/definition.csv: patch/work/map_definition.csv patch/patches/map_definition.patch | patch/tree/map
|
|
|
|
patch -u --binary -N $^
|
2023-11-08 20:05:50 +00:00
|
|
|
cp -v $< $@
|
2023-11-08 19:40:04 +00:00
|
|
|
|
2023-11-08 20:05:50 +00:00
|
|
|
clean:
|
2023-11-08 20:30:05 +00:00
|
|
|
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
|