summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-09-16 14:36:23 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-09-16 14:48:22 -0700
commited81f91ac3c470e00df0d5c5cf9c274ce30f47b3 (patch)
treec4a59cd3e42a717f611be3acef3bf0009dc5192c /GNUmakefile
parentbfc8f192f99e6afcb5b0910f8800a76b85910e73 (diff)
downloadserverdata-ed81f91ac3c470e00df0d5c5cf9c274ce30f47b3.tar.gz
serverdata-ed81f91ac3c470e00df0d5c5cf9c274ce30f47b3.tar.bz2
serverdata-ed81f91ac3c470e00df0d5c5cf9c274ce30f47b3.tar.xz
serverdata-ed81f91ac3c470e00df0d5c5cf9c274ce30f47b3.zip
Reimplement aligncsv in C++ instead of python.
The main advantage of the new one is that it properly handles {script arg1, arg2;}
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 00000000..4746eddd
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,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:
+ ant -f tools/tmwcon/build.xml
+ java -jar tools/tmwcon/converter.jar 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 world/map/db/item_db.txt
+indent-mobs:
+ tools/aligncsv world/map/db/mob_db.txt