home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a524 / 40.ddi / link.mk < prev    next >
Encoding:
Makefile  |  1980-01-08  |  1.1 KB  |  41 lines

  1.  
  2. # $Header: link.mk.pp,v 6.3 89/09/28 10:50:18 rafsarif Exp $ link.mk 
  3.  
  4. #
  5. # link.mk - Centralized makefile for linking Oracle products.
  6. #
  7. # Usage: make -f link.mk <product_name>
  8. #
  9. # If <product_name> is omitted all products that have been installed
  10. # will be relinked. 
  11. # If any of the network drivers such as tcp, async, .... are being installed
  12. # all of the installed products will be relinked.
  13. # If a product in the following $PRODUCTS list, is given as an argument to this 
  14. # script, only that product will be relinked.
  15. #
  16.  
  17. SHELL=/bin/sh
  18. PRODUCTS=rdbms sqlplus forms loader report sqlreport menu plsql \
  19.     ada c cobol fortran pascal dict cgen forms30 crt sqlcalc mail
  20. NET=net tcp async decnet netex
  21.  
  22. all: net 
  23.  
  24. $(NET):
  25.     @make -i -f link.mk  link_prod "PROD=`awk -F: '{print $$2}' \
  26.     $(ORACLE_HOME)/install/oracle.key | tr '\012' '\040'`"
  27.  
  28. $(PRODUCTS):
  29.     @make -i -f link.mk link_prod "PROD= $@"
  30.  
  31. link_prod:
  32.     @for i in $(PROD) ; do \
  33.        if [ -f $(ORACLE_HOME)/$$i/install/.$$i ] ; then \
  34.         echo; echo "cd $(ORACLE_HOME)/$$i/lib; make install"; \
  35.         (cd $(ORACLE_HOME)/$$i/lib ; make -f *.mk install) ; \
  36.        fi ; \
  37.     done
  38.  
  39.