summaryrefslogblamecommitdiff
path: root/Makefile
blob: 7c2416450a59fc23421d0c6c4ef8fa7b8e80ba0b (plain) (tree)




































                                                                                       
XSLTPROC = xsltproc

all:
	@echo "Current makes:"
	@echo "contrib - makes contributors list for wiki and client-data"
	@echo "testxml - performs a minimal XML test"
	@echo "wiki    - makes wiki automated databases"
	@echo "maps    - makes server-data information"
	@echo "update  - makes update and propagate web information (untested)"

contrib:
	cd contrib_xsl ; make
	@echo "Please commit the result on wiki and clientdata."

.PHONY: testxml
testxml:
	cd testxml ; ./testxml.py silent |grep -v "Checking"

.PHONY: wiki
wiki:
	cd wiki ; ./wikigen.py
	cd wiki ; mv *.md ../../wiki/
	@echo "Wiki files updated, please commit the result on wiki."

.PHONY: maps
maps:
	cd hercules ; ./tmx_converter.py ../../client-data/ ../../server-data
	cd hercules ; ./convert_tmx_to_mapcache.py
	@echo "Please commit the result on serverdata."

.PHONY: update
update:
	@cd ../web ; echo "Checking for web/ folder..." # check if web directory exists
	cd update ; ./update.sh
	cd web ; ./deploy.sh
	@echo "Update deployed, please move upload/ and commit result on web."