summaryrefslogtreecommitdiff
path: root/GNUmakefile
blob: 590b111e2afb35326bf0533686deb9f3906b6c4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: all maps conf mobxp mobxp-impl indent indent-items indent-mobs
# Can't be parallel due to the mobxp/indent-mobs conflict
.NOTPARALLEL:
all: maps conf
maps:
	tools/tmx_converter.py client-data/ world/map/

% : | %.example
	cp "$|" "$@"
conf: \
login/conf/login_local.conf login/conf/ladmin_local.conf login/save/gm_account.txt login/save/account.txt \
world/map/conf/map_local.conf world/map/conf/battle_local.conf world/map/conf/motd.txt world/map/conf/help.txt world/map/conf/atcommand_local.conf \
world/conf/char_local.conf

mobxp: mobxp-impl indent-mobs
mobxp-impl:
	mv world/map/db/mob_db.txt world/map/db/mob_db.old
	tools/mobxp < world/map/db/mob_db.old > world/map/db/mob_db.txt
	rm world/map/db/mob_db.old
indent: indent-mobs indent-items
indent-items: tools/aligncsv
	tools/aligncsv world/map/db/item_db.txt
indent-mobs: tools/aligncsv
	tools/aligncsv world/map/db/mob_db.txt