# -*- makefile -*- # $Id: Makefile-install-ot,v 1.29 1999/09/28 15:44:53 amchavan Exp $ # # Makefile -- Make file for installed version of OT # To be processed with ``configure''. # # Generated by bin/configure from source/Makefile-install-ot # Wed Jul 25 15:59:57 MET DST 2001 # # make, make all, make install-runtime # Install OT run-time environment. # # make newtsf # Install a new set of Template Signature Files # Usage: # make newtsf INSTRUMENT= # where is EMMI, SOFI, SUSI2, etc # Input parameters INSTRUMENT = # Shell scripts to be copied to the bin directory. # (none) ShScr= TmpFile = /tmp/Makefile-out.$$ InstrPackage = $(INSTRUMENT)*.tar.gz # BinPackage = ../tcltk-CCSLite-*.tar.gz BinPackage = ../tcltk-*-*.tar.gz Wish = oh-wish Tclsh = oh-tcl # # Default target # all: install-runtime # # Install OT run time environment. # Remove our libraries if the VLT standard software is installed. # # WARNING: link to ~ggiannon/work/p2pp/bin/DemoApp.image needed for # in-house tests of the STS. # Remove when not needed any more. # install-runtime: checks1 checks2 gunzip -c $(BinPackage) | tar xovf - @if [ -r $(HOME)/.ot_config ] ; then \ echo ;\ echo "Configuration file $(HOME)/.ot_config is obsolete" ;\ echo "and should be removed" ;\ echo ;\ fi @if [ ! -r $(HOME)/.otrc ] ; then \ mv config/otrc $(HOME)/.otrc ; \ echo ;\ echo "Defined new configuration file $(HOME)/.otrc" ;\ echo ;\ fi mkdir data cd bin ; ln -s ot.sh ot checks1: @echo "Checking environment..." @if [ -z "$(OT)" ] ; then \ echo "Fatal: \$$OT is not set" ;\ exit 1 ;\ fi @if [ "$(OT)" != $(PWD) ] ; then \ echo "Fatal: current directory is not \$$OT" ;\ exit 1 ;\ fi checks2: @rm -f $(TmpFile) ; touch $(TmpFile) @-ls $(BinPackage) | wc -l > $(TmpFile) @if [ `cat $(TmpFile)` -eq 0 ] ; then \ echo "FATAL: binary distribution package not found" ;\ exit 1 ;\ fi @if [ `cat $(TmpFile)` -gt 1 ] ; then \ echo "FATAL: found too many binary distribution packages" ;\ ls $(BinPackage) ;\ echo "Please keep only one package" ;\ exit 1 ;\ fi @if [ -z "$(LISP)" ] ; then \ echo "Notice: \$$LISP is not set, STS will not be installed" ;\ fi @rm -f $(TmpFile) @echo "Environment OK" checks3: @if [ -z "$(INSTRUMENT)" ] ; then \ echo "usage: make newtsf INSTRUMENT=" ;\ echo " where is EMMI, SOFI, etc." ;\ exit 1 ;\ fi @rm -f $(TmpFile) ; touch $(TmpFile) @-ls $(InstrPackage) | wc -l > $(TmpFile) @if [ `cat $(TmpFile)` -eq 0 ] ; then \ echo "FATAL: instrument package for $(INSTRUMENT) not found" ;\ exit 1 ;\ fi @if [ `cat $(TmpFile)` -gt 1 ] ; then \ echo "FATAL: too many instrument packages for $(INSTRUMENT)" ;\ ls $(InstrPackage) ;\ echo "Please keep only one package" ;\ exit 1 ;\ fi @rm -f $(TmpFile) @echo "Environment OK" newtsf: checks1 checks3 gunzip -c $(InstrPackage) | tar xovf - rm -f instruments/$(INSTRUMENT)/index cd instruments/$(INSTRUMENT) ; \ cat *.tsf | awk -f $(OT)/bin/make-tsf-index.awk > index