#*******************************************************************************
# E.S.O. - VLT project
#
# "@(#) $Id: Makefile,v 1.25 1999/05/09 22:46:23 vltsccm Exp $" 
#
# Makefile of system files configuration for PARANAL installation
#
# who          when      what
# ---------    --------  ----------------------------------------------
# gfilippi     24/12/97  created
#------------------------------------------------------------------------------ 

#
# target directory for installation
#
 
#
# to have the same target directory on every computer may require
# a specific link from /vlt to the real directory.
#

INSTALL_DIR=/vlt/System
#
#
# MODULE CODE DESCRIPTION:
# ------------------------

#
# man pages to be done
# --------------------
MANSECTIONS = 


#>>>>> END OF standard rules

#
# INCLUDE STANDARDS
# -----------------
MAKEDIR = $(VLTROOT)/include
include $(MAKEDIR)/vltMakefile

#
# Redefinition of the remote shell execution command
# --------------------------------------------------
#
os=$(shell uname)

ifeq ($(os),HP-UX)
    REMSH=remsh
    endif
ifeq ($(os),SunOS)
    REMSH=rsh
    endif

#
# TARGETS
# -------
all:	vue 
	$(RM) *.BAK
	$(RM) .*.BAK
	$(RM) ../app-defaults/*.BAK
	@echo " . . . 'all' done" 

#
# VUE files
.PHONY: vue
vue: ../bin/Vueprofile ../bin/Vuewmrc 

../bin/Vueprofile: Vueprofile
	-$(RM) ../bin/Vueprofile; cp Vueprofile ../bin/Vueprofile; chmod 755 ../bin/Vueprofile

../bin/Vuewmrc: Vuewmrc
	-$(RM) ../bin/Vuewmrc; cp Vuewmrc ../bin/Vuewmrc; chmod 755 ../bin/Vuewmrc

clean : clean_all
	$(RM) ../bin/*
	@echo " . . . clean done"

man   : do_man 
	@echo " . . . man page(s) done"

#
#
install : install_all
	-cp ../bin/Vueprofile  $(INSTALL_DIR)/Vueprofile
	-cp ../bin/Vuewmrc     $(INSTALL_DIR)/Vuewmrc
	-if [ ! -d $(INSTALL_DIR)/config ]; \
             then mkdir $(INSTALL_DIR)/config; \
         fi
	-chmod u+w  $(INSTALL_DIR)/config/*.cshrc
	-cp ../config/*.cshrc $(INSTALL_DIR)/config/
	@echo ""
	@echo " . . . installation done"

#___oOo___
