# -*- Makefile -*- #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #.IDENT $Id: Makefile.install-mt,v 1.1.2.1 2003/03/12 08:57:06 tcanavan Exp $ #.AUTHOR A M Chavan, ESO #.PURPOSE Install P2PP V.2x # # make, make all # Check the current environment and build all final files # # make clean # Remove the installation (TBD) # # make install # Install Masktracker V.2.5.2 # #--------------------------------------------------------------------- InstallDir = $(PWD)/.. JREPackage = $(InstallDir)/jre1.4.0-`uname`.tar.gz # Check the current environment and build # all final files #-------------------------------------------------- all: check-env install # Currently empty #-------------------------------------------------- clean: # Install P2PP V.2.x #-------------------------------------------------- install: -if [ -f $(JREPackage) ] ; then \ echo "Found JRE: installing" ; \ cd $(InstallDir) ; \ gunzip -c $(JREPackage) | tar xovf - ; \ fi # Let's see if we are in the right place; # if not, exit. #-------------------------------------------------- check-env: @ echo "Checking $$PWD vs. mt-2.5.4beta1-HP-UX-B.11.00...\c" @ if [ `basename $$PWD` = "mt-2.5.4beta1-HP-UX-B.11.00" ] ; then \ echo "Environment OK" ; \ else \ echo "Mismatch, exiting." ; \ echo "Must \"cd mt-2.5.4beta1-HP-UX-B.11.00\" before running make" ; \ exit 1 ; \ fi