#******************************************************************************* # E.S.O. - VLT project # # "@(#) $Id: Makefile,v 1.25 2004/03/10 09:19:32 vltsccm Exp $" # # Makefile of ESO-VLT-DIC.* # # who when what # -------- ---------- ---------------------------------------------- # eallaert 1999-07-12 created # eallaert 2001-06-25 remove link before (re)creation - see SPR 20010360 # #****************************************************************************** # This Makefile follows VLT Standards (see Makefile(5) for more). # # This is a generic Makefile, which allows to install dictionaries into # the right directories. The module must contain: # # * a config directory, containing one or more dictionaries # * a src directory, with the Makefile (this file). The Makefile merely # contains an "install" target, which installs the dictionary under # $VLTROOT/config. It also establishes a symbolic link from $INS_ROOT # to this dictionary, if the environment variable INS_ROOT exists. # * a Changelog file, which contains a description (added manually) # of the changes. # # It will install this module's dictionary/-ies (which are located under # ../config) into $(VLTROOT)/config. If the environment variable INS_ROOT # is defined, it will also create a symbolic link from # $(INS_ROOT)/SYSTEM/Dictionary/ to $(VLTROOT)/config/ # for each located under ../config. # #****************************************************************************** # REMARKS # None #------------------------------------------------------------------------ # # user definable C-compilation flags #USER_CFLAGS = # # additional include and library search paths #USER_INC = #USER_LIB = DICTIONARIES := $(shell cd ../config; ls ESO-VLT-DIC.*) VERSION := $(shell tcl -c 'puts [lindex { $Revision: 1.25 $ } 1]') # # MODULE CODE DESCRIPTION: # ------------------------ # As a general rule: public file are "cleaned" and "installed" # local (_L) are not "installed". # # C programs (public and local) # ----------------------------- EXECUTABLES = EXECUTABLES_L = # # xxxxx_OBJECTS = xxxxx_LDFLAGS = xxxxx_LIBS = # # special compilation flags for single c sources #yyyyy_CFLAGS = # # Includes (.h) files (public only) # --------------------------------- INCLUDES = # # Libraries (public and local) # ---------------------------- LIBRARIES = LIBRARIES_L = # # lllll_OBJECTS = # # Scripts (public and local) # ---------------------------- SCRIPTS = SCRIPTS_L = # # TCL scripts (public and local) # ------------------------------ TCL_SCRIPTS = TCL_SCRIPTS_L = # # tttttt_OBJECTS = tttttt_TCLSH = tttttt_LIBS = # # TCL libraries (public and local) # ------------------------------ TCL_LIBRARIES = TCL_LIBRARIES_L = # # tttlll_OBJECTS = # # UIF panels (public and local) # ---------------------------- PANELS = PANELS_L = # # On-Line Database Files # ---------------------- DBL_CLASSES = DBL_BCF = DBL_FLAGS = xxxx_DBL_FLAGS = # # man pages to be done # -------------------- MANSECTIONS = MAN1 = MAN3 = MAN5 = MAN7 = MAN8 = # # local man pages # --------------- MANl = # # ASCII file to be converted into Framemaker-MIF # -------------------- ASCII_TO_MIF = # # other files to be installed #---------------------------- INSTALL_FILES = ../config/$(DICTIONARIES) # # list of all possible C-sources (used to create automatic dependencies) # ------------------------------ CSOURCENAMES = \ $(foreach exe, $(EXECUTABLES) $(EXECUTABLES_L), $($(exe)_OBJECTS)) \ $(foreach lib, $(LIBRARIES) $(LIBRARIES_L), $($(lib)_OBJECTS)) # #>>>>> END OF standard rules # # CHOSE PLATFORM # -------------- # Default is UNIX, for VxWorks application next line MUST BE UNCOMMENTED #MAKE_VXWORKS = on # # INCLUDE STANDARDS # ----------------- MAKEDIR = $(VLTROOT)/include include $(MAKEDIR)/vltMakefile # # TARGETS # ------- all: do_all @echo " . . . 'all' done" clean : clean_all $(AT)rm -rf ../config/*~ @echo " . . . clean done" man : do_man @echo " . . . man page(s) done" # rename the dictionaries, appending the version number to it. # Remark that VLTTOP is either INTROOT or VLTROOT. # (ln -f does not work on Solaris as on HP-UX - remove file first - see SPR 20010360) install : clean_links install_all $(AT)for file in $(DICTIONARIES) ; \ do \ (cd $(VLTTOP)/config; mv -f $${file} $${file}-$(VERSION); \ rm -f $${file} ; ln -sf $${file}-$(VERSION) $${file}) ; \ done ifdef INS_ROOT $(AT)# establish symbolic links from INS_ROOT to VLTTOP. $(AT)for file in $(DICTIONARIES) ; \ do \ rm -f $(INS_ROOT)/SYSTEM/Dictionary/$${file} ; \ ln -sf $(VLTTOP)/config/$${file}-$(VERSION) $(INS_ROOT)/SYSTEM/Dictionary/$${file} ; \ done endif @echo " . . . installation done" db : db_all @echo " . . . ../DB done" # Remove the old files - needed has they have been moved and replaced by links clean_links : $(AT)for file in $(DICTIONARIES) ; \ do \ rm -rf $(VLTTOP)/config/$${file} ; \ done #___oOo___