# Makefile for DokuWiki Template Arctic
#
# @author Michael Klier <chi@chimeric.de>

DIST_VERSION=`cat VERSION`
DIST_NAME=template-arctic-$(DIST_VERSION)
DIST_DIR=../arctic

# {{{ DOCS
DOCS=$(DIST_DIR)/README \
	 $(DIST_DIR)/COPYING \
	 $(DIST_DIR)/VERSION
# }}}

# {{{ CSS
CSS=$(DIST_DIR)/arctic_design.css \
	$(DIST_DIR)/arctic_layout.css \
	$(DIST_DIR)/arctic_media.css \
	$(DIST_DIR)/arctic_print.css \
	$(DIST_DIR)/arctic_rtl.css\
	$(DIST_DIR)/design.css \
	$(DIST_DIR)/layout.css \
	$(DIST_DIR)/media.css \
	$(DIST_DIR)/print.css \
	$(DIST_DIR)/rtl.css
# }}}

# {{{ STYLE_INI
STYLE_INI=$(DIST_DIR)/style.ini \
		  $(DIST_DIR)/style.ini.dist
# }}}

# {{{ PHP
PHP=$(DIST_DIR)/detail.php \
	$(DIST_DIR)/main.php \
	$(DIST_DIR)/mediamanager.php \
	$(DIST_DIR)/tpl_functions.php
# }}}

# {{{ HTML
HTML=$(DIST_DIR)/footer.html \
	 $(DIST_DIR)/left_sidebar.html \
	 $(DIST_DIR)/right_sidebar.html
# }}}

# {{{ SCRIPT
SCRIPT=$(DIST_DIR)/script.js
# }}}

# {{{ IMAGES
IMAGES=$(DIST_DIR)/images/bullet.gif \
	   $(DIST_DIR)/images/button-apache.png \
	   $(DIST_DIR)/images/button-as.gif \
	   $(DIST_DIR)/images/button-bash.png \
	   $(DIST_DIR)/images/button-cc.gif \
	   $(DIST_DIR)/images/button-chimeric-de.png \
	   $(DIST_DIR)/images/button-css.png \
	   $(DIST_DIR)/images/button-debian.png \
	   $(DIST_DIR)/images/button-donate.gif \
	   $(DIST_DIR)/images/button-dw.png \
	   $(DIST_DIR)/images/button-email.png \
	   $(DIST_DIR)/images/button-firefox.png \
	   $(DIST_DIR)/images/button-gimp.png \
	   $(DIST_DIR)/images/button-gpg.gif \
	   $(DIST_DIR)/images/button-icq.gif \
	   $(DIST_DIR)/images/button-php.gif \
	   $(DIST_DIR)/images/button-rss.png \
	   $(DIST_DIR)/images/buttonshadow.png \
	   $(DIST_DIR)/images/button-vim.png \
	   $(DIST_DIR)/images/button-xhtml.png \
	   $(DIST_DIR)/images/closed.gif \
	   $(DIST_DIR)/images/favicon.ico \
	   $(DIST_DIR)/images/inputshadow.png \
	   $(DIST_DIR)/images/interwiki.png \
	   $(DIST_DIR)/images/link_icon.gif \
	   $(DIST_DIR)/images/mail_icon.gif \
	   $(DIST_DIR)/images/open.gif \
	   $(DIST_DIR)/images/tocdot2.gif \
	   $(DIST_DIR)/images/tool-admin.png \
	   $(DIST_DIR)/images/tool-backlink.png \
	   $(DIST_DIR)/images/tool-edit.png \
	   $(DIST_DIR)/images/tool-index.png \
	   $(DIST_DIR)/images/tool-login.png \
	   $(DIST_DIR)/images/tool-logout.png \
	   $(DIST_DIR)/images/tool-profile.png \
	   $(DIST_DIR)/images/tool-recent.png \
	   $(DIST_DIR)/images/tool-revisions.png \
	   $(DIST_DIR)/images/tool-source.png \
	   $(DIST_DIR)/images/tool-subscribe.png \
	   $(DIST_DIR)/images/tool-top.png \
	   $(DIST_DIR)/images/urlextern.png \
	   $(DIST_DIR)/images/windows.gif
# }}}

# {{{ LANG
LANG=$(DIST_DIR)/lang/de/settings.php \
     $(DIST_DIR)/lang/cs/settings.php \
     $(DIST_DIR)/lang/en/settings.php \
     $(DIST_DIR)/lang/eo/settings.php \
     $(DIST_DIR)/lang/es/settings.php \
     $(DIST_DIR)/lang/fr/settings.php \
     $(DIST_DIR)/lang/it/settings.php \
     $(DIST_DIR)/lang/pl/settings.php \
     $(DIST_DIR)/lang/pt/settings.php \
     $(DIST_DIR)/lang/ru/settings.php
# }}}

# {{{ CONF
CONF=$(DIST_DIR)/conf/default.php \
	 $(DIST_DIR)/conf/metadata.php
# }}}

DIST_FILES= $(DOCS) $(CSS) $(HTML) $(SCRIPT) $(PHP) $(STYLE_INI) $(IMAGES) $(LANG) $(CONF)

dist:
	tar czf $(DIST_NAME).tgz $(DIST_FILES)

clean: 
	rm $(DIST_NAME).tgz

# vim:ts=4:sw=4:fdm=marker: