#
# M2WP - 1.02 - Makefile
#
# This is M2WP - Mail 2 WordPress, an SMTP mail robot, which can
# be used to post blog entries to a wordpress blog.
#
# By  accessing  this  software,  M2WP, you  are  duly  informed
# of and agree to be  bound  by the  conditions  described below
# in this notice:
#
# This  software  product,  M2WP,  is developed by Thomas Linden
# and  copyrighted  (C)  2005-2006  by  Thomas Linden,  with all
# rights reserved.
#
# There  is  no charge for M2WP software.  You  can redistribute
# it and/or modify it under the terms of the GNU  General Public
# License, which is incorporated by reference herein.
#
# M2WP is distributed  WITHOUT ANY WARRANTY, IMPLIED OR EXPRESS,
# OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE or that
# the use of it will not infringe on any third party's intellec-
# tual property rights.
#
# You  should  have received a copy of the  GNU  General  Public
# License  along  with M2WP.   Copies can also be obtained from:
#
#   http://www.gnu.org/licenses/gpl.txt
#
# or by writing to:
#
#   Free Software Foundation, Inc.
#   59 Temple Place, Suite 330
#   Boston, MA 02111-1307
#   USA
#
# Or contact:
#
#  "Thomas Linden" <tom@daemon.de>
#
# Find more details about M2WP on its website:
#
#  http://www.daemon.de/M2wp
#


 #
 # directory where to install M2WP (ends up in $PREFIX/bin/m2wp)
PREFIX  = /usr/local

 #
 # directory where to install the config (ends up in $CONFDIR/m2wp.conf)
CONFDIR = /etc

 #
 # primary group of the mailer user
GROUP   = nogroup



###### end of user customizable section - leave #########


all:
	@echo "type 'make install' to install M2WP"


install:
	install -d -o root -g root $(PREFIX)/bin
	install -o root -g $(GROUP) -m 750 m2wp $(PREFIX)/bin/
	install -o root -g $(GROUP) -m 640 m2wp.conf $(CONFDIR)/

update:
	install -d -o root -g root $(PREFIX)/bin
	install -o root -g $(GROUP) -m 750 m2wp $(PREFIX)/bin/
	@echo "Copying new configfile version to $(CONFDIR)/m2wp.conf.dist"
	install -o root -g $(GROUP) -m 640 m2wp.conf $(CONFDIR)/m2wp.conf.dist

clean:
	rm -f *~

