##
##  OTPWCalc - One time password challenge response calculator client
##  Copyright © 2013 Michael Schloh von Bennewitz <michael@schloh.com>
##
##  OTPWCalc is free software: you can redistribute it and/or modify
##  it under the terms of the European Union Public Licence, either
##  version 1.1 of the license, or (at your option) any later version.
##
##  OTPWCalc is distributed in the hope that it will be useful,
##  but WITHOUT ANY WARRANTY; without even the implied warranty
##  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
##  the European Union Public License for more details.
##
##  You should have received a copy of the European Union Public
##  Licence along with OTPWCalc. If not, please refer to
##  <http://joinup.ec.europa.eu/software/page/eupl/>.
##
##  This file is part of project OTWPCalc, a one time password challenge
##  response calculator client and is found at http://otpwcalc.europalab.com/
##
##  Makefile: Autoconf Makefile configuration
##

# Paths
distdir   = ../../dist

# Files
ZIPBALL   = otpwcalc-foxos-$(VERSION).zip

# Vars
VERSION   = 0.7.5

# Progs
PROGZIP   = zip
PROGECHO  = echo

# Logic
all:
	@$(PROGECHO) 'Nothing to do... To roll a zipball please make the dist target.'

dist: Makefile
	@if [ -e $(distdir)/$(ZIPBALL) ]; \
	    then $(PROGECHO) '$(distdir)/$(ZIPBALL) already exists, aborting.'; \
	else \
	    $(PROGZIP) -r9 $(distdir)/$(ZIPBALL) . -x Makefile -x test/\* -x otpwcalc.appcache -x jquery.plugins/\*-x img/keonmobile.png -x img/\*.svg -x img/\*.xcf; \
	fi
