#    Copyright (C) 2007 Matthew Strait
#
#    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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA

all: humanzip humanunzip

humanzip: humanzip.cpp humanzip.h
	g++ -Wall -O2 -o humanzip humanzip.cpp

humanunzip: humanunzip.cpp humanzip.h
	g++ -Wall -O2 -o humanunzip humanunzip.cpp

clean:
	rm -f humanzip humanunzip

install:
	cp -f humanzip humanunzip /usr/local/bin/
	cp -f humanzip.1 /usr/share/man/man1/
	ln -sf /usr/share/man/man1/humanzip.1 /usr/share/man/man1/humanunzip.1

uninstall:
	rm -f /usr/local/bin/humanzip /usr/local/bin/humanunzip \
	/usr/share/man/man1/humanzip.1 /usr/share/man/man1/humanunzip.1
