#=======================================================================
# Newtonlink   - transfer data between a Apple Newton Message Pad and
#                Unix applications
#
# Copyright (C) 1996-1997 Reinhold Schoeb (schoeba@str.daimler-benz.com)
#                         Frank Scholz (dev@artus.pf.bawue.de)
#                         Andrew Maier (Andrew.Maier@cern.ch)
#                         Gerald Hofer (hofer@icg.tu-graz.ac.at)
#
# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
#=======================================================================

# $Log: Makefile,v $
# Revision 1.11  1997/11/29 19:29:43  kalli
# Erweiterung fuer Multi-Platform
#

#==================== START USER EDITABLE SECTION ======================

# for Linux :
# the Perl binary
PERL_BIN = /usr/bin/perl
# the wish binary
WISH_BIN = /usr/bin/wish
# the html browser for helpdoc
BROWSER  = netscape
# Install command
INSTALL  = install
# Directory in which to install the readme files
RDM_DIR  = /usr/doc/newtonlink-1.26
# Directory in which to install the libraries
LIB_DIR  = /usr/lib/newtonlink-1.26
# Directory in which to install the documentation
DOC_DIR  = /usr/lib/newtonlink-1.26/doc
# Directory in which to install the manpage
MAN_DIR  = /usr/local/man/man1

#==================== END USER EDITABLE SECTION ========================


install:
	$(INSTALL) -m 755 -d $(RDM_DIR)
	$(INSTALL) -m 644 COPYRIGHT GNU_GPL README $(RDM_DIR)
	
	$(INSTALL) -m 755 -d $(LIB_DIR)
	$(INSTALL) -m 644 COPYRIGHT GNU_GPL README $(LIB_DIR)
	$(INSTALL) -m 755 newtonlink $(LIB_DIR)
	$(INSTALL) -m 755 tknl $(LIB_DIR)
	$(INSTALL) -m 644 *.pl $(LIB_DIR)

	$(INSTALL) -m 755 -d $(LIB_DIR)/icons
	$(INSTALL) -m 644 icons/* $(LIB_DIR)/icons

	$(INSTALL) -m 755 -d $(LIB_DIR)/doc
	$(INSTALL) -m 644 doc/*.html $(LIB_DIR)/doc
	$(INSTALL) -m 755 -d $(LIB_DIR)/doc/Images
	$(INSTALL) -m 644 doc/Images/* $(LIB_DIR)/doc/Images
	
	$(INSTALL) -m 644 newtonlink.man $(MAN_DIR)/newtonlink.1

	$(INSTALL) -m 644 newtonlink.config /etc

	ln -s $(LIB_DIR) /usr/lib/newtonlink	
	ln -s /usr/lib/newtonlink/newtonlink /usr/bin/newtonlink

remove:
	rm -rf $(RDM_DIR)
	rm -rf $(LIB_DIR)
	rm $(MAN_DIR)/newtonlink.1
	rm /etc/newtonlink.config
	rm /usr/lib/newtonlink
	rm /usr/bin/newtonlink
