#
# FlexiRPG Makefile
#
# Copyright (C) 2009 David Vrabel
#

PACKAGE := flexirpg
VERSION := $(shell python orpg/orpg_version.py)

all: icons

dir := $(PACKAGE)-$(VERSION)
zip := $(dir).zip

icons:
	make -C images

dist:
	@if [ -e $(zip) ]; then echo "Error: $(zip) already exists"; exit 1; fi
	git archive --prefix=$(dir)/ HEAD | tar xf -
	$(MAKE) -C $(dir) all
	zip -r $(zip) $(dir)
	rm -r $(dir)
