# QuickCrypt - A program for generating MD5 Password Strings
# Copyright (C) 2003 Michael Palmer

# 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 <raven@netpimpz.com>.



# Modify these as nessecary

PERL=/usr/bin/perl
PROGRAM=quickcrypt
VERSION=0.9.2b
FILES=`cat MANIFEST`
BINDIR=/usr/bin


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 QuickCrypt,"
	@echo "or copy quickcrypt to your /usr/bin directory."

install:
	@echo "Installing Program..."
	install -m0755 -o0 -g0 $(PROGRAM) $(BINDIR)/$(PROGRAM)
	@echo
	@echo "Installation Complete!"

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

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

uninstall:
	rm $(BINDIR)/$(PROGRAM)
