# randomsig		A program for creating random email signatures
# Copyright (C) 2001 Suso Banderas

# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program 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
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
# You may contact the author at <suso@suso.org>.



# Modify these as nessecary

PERL=/usr/bin/perl
PROGRAM=randomsig
VERSION=1.10.0
FILES=`cat MANIFEST`
BINDIR=/usr/local/bin
# if you modify the below value, make sure you also modify the same path
# in the randomsig program.
ETCDIR=/usr/local/etc/$(PROGRAM)

TESTMESSAGE=\n\nTesting to make sure Perl works. If you see this, things are good.\n\n

all:
	@echo "Right now there isn't any need to run make."
	@echo "Please run 'make install' to install randomsig,"
	@echo "or copy randomsig to your home directory."

install:
	install -m0755 -o0 -g0 -d $(BINDIR)
	install -m0755 -o0 -g0 $(PROGRAM) $(BINDIR)/$(PROGRAM)
	install -m0755 -o0 -g0 -d $(ETCDIR)
	install -m0644 -o0 -g0 .randomsigrc $(ETCDIR)/.randomsigrc
	install -m0644 -o0 -g0 .sigquotes $(ETCDIR)/.sigquotes
	install -m0644 -o0 -g0 .sigcancel $(ETCDIR)/.sigcancel
	install -m0644 -o0 -g0 .sigread $(ETCDIR)/.sigread

test:
	$(PERL) -e "print \"$(TESTMESSAGE)\";"

tar:
	mkdir $(PROGRAM)-v$(VERSION)
	cp $(FILES) $(PROGRAM)-v$(VERSION)/
	tar cvf $(PROGRAM)-v$(VERSION).tar $(PROGRAM)-v$(VERSION)
	gzip -9 $(PROGRAM)-v$(VERSION).tar
	rm -fr $(PROGRAM)-v$(VERSION)/
