home *** CD-ROM | disk | FTP | other *** search
Makefile | 1980-01-08 | 1.1 KB | 41 lines |
-
- #
- # $Header: link.mk.pp,v 6.3 89/09/28 10:50:18 rafsarif Exp $ link.mk
- #
-
- #
- # link.mk - Centralized makefile for linking Oracle products.
- #
- # Usage: make -f link.mk <product_name>
- #
- # If <product_name> is omitted all products that have been installed
- # will be relinked.
- # If any of the network drivers such as tcp, async, .... are being installed
- # all of the installed products will be relinked.
- # If a product in the following $PRODUCTS list, is given as an argument to this
- # script, only that product will be relinked.
- #
-
- SHELL=/bin/sh
- PRODUCTS=rdbms sqlplus forms loader report sqlreport menu plsql \
- ada c cobol fortran pascal dict cgen forms30 crt sqlcalc mail
- NET=net tcp async decnet netex
-
- all: net
-
- $(NET):
- @make -i -f link.mk link_prod "PROD=`awk -F: '{print $$2}' \
- $(ORACLE_HOME)/install/oracle.key | tr '\012' '\040'`"
-
- $(PRODUCTS):
- @make -i -f link.mk link_prod "PROD= $@"
-
- link_prod:
- @for i in $(PROD) ; do \
- if [ -f $(ORACLE_HOME)/$$i/install/.$$i ] ; then \
- echo; echo "cd $(ORACLE_HOME)/$$i/lib; make install"; \
- (cd $(ORACLE_HOME)/$$i/lib ; make -f *.mk install) ; \
- fi ; \
- done
-
-