# File: Makefile for Backgammon Wordpress Plugin
#
# Attribute codes:
#  00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
#  Text color codes:
#  30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
#  Background color codes:
#  40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
#
# History:
# 06-Oct-14 fhk; Init.
# 31-Oct-18 fhk; Updated for release of newly revamped 'backgammon' plugin.
#-----------------------------------------------------------

# Set these Definable parameters:
ZipFileLocation = /fe_network/sites/www.frankkoenen.com/owner/html/upload/backgammon.zip
Feweb2Location = /fe_network/wpsuptools/.local/plugins/backgammon

# -----------------------------------------------------------------------
# No editing required below this line.
# -----------------------------------------------------------------------

SHELL = /bin/bash

all:: help

help:
	@echo -e "\n\n\t\t[31;4m Backgammon Wordpress Plugin [0m\n"
	@echo -e "\tmake edit\t\t:== Edit topical files."
	@echo -e "\tmake zipfile\t\t:== Create the [1;35m${ZipFileLocation}[0m Zip File\n\t\t\t\t    that is linked in article @ http://www.frankkoenen.com/backgammon/"
	@echo -e "\tmake push2feweb2\t:== Push the files to feweb2, ${Feweb2Location}"
	@echo -e "\tmake commit\t\t:== perform SVN commit to wordpress.org"
	@echo -e "\tmake setversion\t\t:== See ./.do_setversion"

zipfile:
	./.do_makezipfile ${ZipFileLocation}

edit:
	vimmany *.css *.php *.js *.lib *.png readme.txt

push2feweb2:
	netcp insularroot@feweb2.feweb.net ${Feweb2Location} *.css *.php *.js *.lib *.png readme.txt

setversion:
	@echo "See ./.do_setversion"
	./.do_setversion

commit:
	@echo 'execute this command once you are sure wordpress.org is ready for this work, command:   svn commit'

.DEFAULT:
	@echo "Ready."
