# makefile for managing a wview skin
# Copyright 2011 Matthew Wall, all rights reserved

PKG_NAME=exfoliation-for-wview
SKIN_NAME=exfoliation
SKIN_VERSION=0.3
TMPL_DIR=/opt/wview/etc/wview/html
CONF_DIR=/opt/wview/etc/wview
WEB_DIR=/var/wview/img
TMP_DIR=/var/tmp

all: help
help:
	echo "targets include:"
	echo "  install"
	echo "  tarball"

install:
	cp standard/*.htx $(TMPL_DIR)
	cp standard/*.incx $(TMPL_DIR)
	cp standard/*.conf $(CONF_DIR)
	cp static/* $(WEB_DIR)

clean:
	find . -name "*~" -exec rm {} \;

tarball: clean
	tar cvfz $(TMP_DIR)/$(PKG_NAME)-$(SKIN_VERSION).tgz ../$(SKIN_NAME)
