head	1.91;
access;
symbols
	Version_2_1:1.66
	Version_2:1.39;
locks
	glass:1.91; strict;
comment	@# @;


1.91
date	92.08.12.03.38.10;	author mao;	state Exp;
branches;
next	1.90;

1.90
date	92.07.25.19.28.34;	author mer;	state Exp;
branches;
next	1.89;

1.89
date	92.07.24.22.13.10;	author mer;	state Exp;
branches;
next	1.88;

1.88
date	92.06.24.17.03.55;	author mer;	state Exp;
branches;
next	1.87;

1.87
date	92.06.23.18.20.59;	author mer;	state Exp;
branches;
next	1.86;

1.86
date	92.05.21.19.03.42;	author mer;	state Exp;
branches;
next	1.85;

1.85
date	92.02.25.21.47.44;	author mer;	state Exp;
branches;
next	1.84;

1.84
date	92.02.24.23.16.54;	author clarsen;	state Exp;
branches;
next	1.83;

1.83
date	92.01.11.18.31.49;	author mao;	state Exp;
branches;
next	1.82;

1.82
date	91.11.03.01.10.44;	author hong;	state Exp;
branches;
next	1.81;

1.81
date	91.09.03.08.04.10;	author kemnitz;	state Exp;
branches;
next	1.80;

1.80
date	91.08.30.11.03.07;	author hong;	state Exp;
branches;
next	1.79;

1.79
date	91.08.06.05.42.17;	author glass;	state Exp;
branches;
next	1.78;

1.78
date	91.07.28.02.05.42;	author glass;	state Exp;
branches;
next	1.77;

1.77
date	91.07.24.16.36.55;	author hong;	state Exp;
branches;
next	1.76;

1.76
date	91.07.23.23.46.58;	author hong;	state Exp;
branches;
next	1.75;

1.75
date	91.06.05.09.57.29;	author glass;	state Exp;
branches;
next	1.74;

1.74
date	91.05.13.23.15.41;	author kemnitz;	state Exp;
branches;
next	1.73;

1.73
date	91.05.13.01.12.25;	author kemnitz;	state Exp;
branches;
next	1.72;

1.72
date	91.05.08.21.28.54;	author kemnitz;	state Exp;
branches;
next	1.71;

1.71
date	91.05.07.22.33.01;	author mao;	state Exp;
branches;
next	1.70;

1.70
date	91.05.07.21.17.40;	author mao;	state Exp;
branches;
next	1.69;

1.69
date	91.05.01.00.04.54;	author cimarron;	state Exp;
branches;
next	1.68;

1.68
date	91.04.12.14.58.51;	author mao;	state Exp;
branches;
next	1.67;

1.67
date	91.03.21.19.37.07;	author kemnitz;	state Exp;
branches;
next	1.66;

1.66
date	91.03.07.01.56.22;	author kemnitz;	state Exp;
branches;
next	1.65;

1.65
date	91.02.24.09.13.27;	author mao;	state Exp;
branches;
next	1.64;

1.64
date	90.10.23.15.29.06;	author kemnitz;	state Exp;
branches;
next	1.63;

1.63
date	90.10.23.14.54.18;	author kemnitz;	state Exp;
branches;
next	1.62;

1.62
date	90.10.23.14.49.20;	author kemnitz;	state Exp;
branches;
next	1.61;

1.61
date	90.10.23.11.47.35;	author goh;	state Exp;
branches;
next	1.60;

1.60
date	90.10.18.10.41.59;	author goh;	state Exp;
branches;
next	1.59;

1.59
date	90.10.15.20.55.54;	author cimarron;	state Exp;
branches;
next	1.58;

1.58
date	90.10.14.16.06.20;	author kemnitz;	state Exp;
branches;
next	1.57;

1.57
date	90.10.11.10.28.13;	author cimarron;	state Exp;
branches;
next	1.56;

1.56
date	90.10.08.14.53.44;	author cimarron;	state Exp;
branches;
next	1.55;

1.55
date	90.10.04.10.54.40;	author goh;	state Exp;
branches;
next	1.54;

1.54
date	90.10.04.10.28.28;	author goh;	state Exp;
branches;
next	1.53;

1.53
date	90.10.04.10.16.13;	author goh;	state Exp;
branches;
next	1.52;

1.52
date	90.09.19.14.40.49;	author hong;	state Exp;
branches;
next	1.51;

1.51
date	90.09.04.19.27.29;	author cimarron;	state Exp;
branches;
next	1.50;

1.50
date	90.08.22.17.25.10;	author kemnitz;	state Exp;
branches;
next	1.49;

1.49
date	90.08.21.12.45.37;	author cimarron;	state Exp;
branches;
next	1.48;

1.48
date	90.08.21.09.20.54;	author choi;	state Exp;
branches;
next	1.47;

1.47
date	90.08.20.13.49.06;	author choi;	state Exp;
branches;
next	1.46;

1.46
date	90.08.17.15.34.47;	author kemnitz;	state Exp;
branches;
next	1.45;

1.45
date	90.08.09.18.26.55;	author kemnitz;	state Exp;
branches;
next	1.44;

1.44
date	90.08.08.11.30.57;	author cimarron;	state Exp;
branches;
next	1.43;

1.43
date	90.08.08.10.59.27;	author cimarron;	state Exp;
branches;
next	1.42;

1.42
date	90.08.08.03.29.38;	author choi;	state Exp;
branches;
next	1.41;

1.41
date	90.08.03.15.33.54;	author cimarron;	state Exp;
branches;
next	1.40;

1.40
date	90.08.01.15.28.55;	author sp;	state Exp;
branches;
next	1.39;

1.39
date	90.07.23.20.31.23;	author kemnitz;	state Version_2;
branches;
next	1.38;

1.38
date	90.07.23.20.28.56;	author kemnitz;	state Exp;
branches;
next	1.37;

1.37
date	90.07.13.17.19.48;	author kemnitz;	state Exp;
branches;
next	1.36;

1.36
date	90.06.18.16.05.32;	author cimarron;	state Exp;
branches;
next	1.35;

1.35
date	90.06.04.09.27.21;	author cimarron;	state Exp;
branches;
next	1.34;

1.34
date	90.05.31.09.40.49;	author cimarron;	state Exp;
branches;
next	1.33;

1.33
date	90.04.02.11.10.02;	author cimarron;	state Exp;
branches;
next	1.32;

1.32
date	90.04.02.10.57.11;	author cimarron;	state Exp;
branches;
next	1.31;

1.31
date	90.03.28.20.48.01;	author mao;	state Exp;
branches;
next	1.30;

1.30
date	90.03.04.15.52.33;	author mao;	state Exp;
branches;
next	1.29;

1.29
date	90.03.02.20.30.43;	author kemnitz;	state Exp;
branches;
next	1.28;

1.28
date	90.02.12.20.09.56;	author mao;	state Exp;
branches;
next	1.27;

1.27
date	90.02.08.22.11.00;	author kemnitz;	state Exp;
branches;
next	1.26;

1.26
date	90.02.08.16.31.12;	author kemnitz;	state Exp;
branches;
next	1.25;

1.25
date	90.02.07.18.25.34;	author sp;	state Exp;
branches;
next	1.24;

1.24
date	90.02.07.16.38.29;	author sp;	state Exp;
branches;
next	1.23;

1.23
date	90.02.07.08.46.11;	author goh;	state Exp;
branches;
next	1.22;

1.22
date	90.02.05.14.46.13;	author goh;	state Exp;
branches;
next	1.21;

1.21
date	90.02.02.17.56.55;	author ong;	state Exp;
branches;
next	1.20;

1.20
date	89.11.24.14.18.53;	author hirohama;	state Exp;
branches;
next	1.19;

1.19
date	89.11.24.13.40.34;	author hirohama;	state Exp;
branches;
next	1.18;

1.18
date	89.11.16.16.03.30;	author mao;	state Exp;
branches;
next	1.17;

1.17
date	89.11.12.13.03.47;	author mao;	state Exp;
branches;
next	1.16;

1.16
date	89.11.02.20.04.08;	author mao;	state Exp;
branches;
next	1.15;

1.15
date	89.10.21.14.50.03;	author mao;	state Exp;
branches;
next	1.14;

1.14
date	89.10.11.15.17.43;	author mao;	state Exp;
branches;
next	1.13;

1.13
date	89.10.10.19.16.20;	author mao;	state Exp;
branches;
next	1.12;

1.12
date	89.10.09.22.38.53;	author mao;	state Exp;
branches;
next	1.11;

1.11
date	89.10.09.15.19.45;	author mao;	state Exp;
branches;
next	1.10;

1.10
date	89.10.03.15.48.14;	author mao;	state Exp;
branches;
next	1.9;

1.9
date	89.09.29.11.16.58;	author goh;	state Exp;
branches;
next	1.8;

1.8
date	89.09.22.01.06.56;	author goh;	state Exp;
branches;
next	1.7;

1.7
date	89.09.21.13.51.28;	author goh;	state Exp;
branches;
next	1.6;

1.6
date	89.09.21.09.57.44;	author goh;	state Exp;
branches;
next	1.5;

1.5
date	89.09.21.09.37.07;	author goh;	state Exp;
branches;
next	1.4;

1.4
date	89.09.19.17.33.05;	author goh;	state Exp;
branches;
next	1.3;

1.3
date	89.09.19.17.24.43;	author goh;	state Exp;
branches;
next	1.2;

1.2
date	89.09.14.16.53.36;	author goh;	state Exp;
branches;
next	1.1;

1.1
date	89.09.14.16.53.21;	author goh;	state Exp;
branches;
next	;


desc
@@


1.91
log
@add pagedoc, shmemdoc
@
text
@#! /bin/csh -f
# $Header: /private/mao/postgres/newconf/RCS/Make,v 1.90 1992/07/25 19:28:34 mer Exp mao $

if (! $?DEVELOPMENT) setenv DEVELOPMENT f
if (! $?STRIPOBJS) setenv STRIPOBJS f
if (! $?POSTGRESHOME) setenv POSTGRESHOME /usr/postgres

#
# CHANGE ME WHEN MAKING RELEASES !!!!!!!!!!!!!
#

set ship=0

if ($?SPRITE_OS) then
	setenv SHELL /bin/sh
	set MAKEF = "/postdev/choi/make -f -"
	set MAKE = "/postdev/choi/make -f -"
else if (`hostname` == "hermes.Berkeley.EDU") then
	set MAKE = "/usr/local/gmake -f -"
else
	set MAKE = "make -f -"
endif

set accessdeps = 
set commanddeps = 
set executordeps =
set libdeps =
set maindeps =
set parserdeps =
set plannerdeps =
set portdeps =
set rewritedeps =
set rulesdeps =
set storagedeps =
set tcopdeps =
set utilsdeps =

set defaultrules = "defaults.mk"
set ext = "o"

set targs =
set defs =
set opts =

set ALL = (inh postgres support postmaster )
set DFLAGS =
set SFLAG =
set PFLAG =

# parse arg list
foreach i ( $argv )
	switch ($i)
	case "-s":		# use dependencies
		set accessdeps = DEPS/ACCESS.d
		set commanddeps = DEPS/COMMANDS.d
		set executordeps = DEPS/EXECUTOR.d
		set libdeps = DEPS/LIB.d
		set maindeps = DEPS/MAIN.d
		set parserdeps = DEPS/PARSER.d
		set plannerdeps = DEPS/PLANNER.d
		set portdeps = DEPS/PORT.d
		set rewritedeps = DEPS/REWRITE.d
		set rulesdeps = DEPS/RULES.d
		set storagedeps = DEPS/STORAGE.d
		set tcopdeps = DEPS/TCOP.d
		set utilsdeps = DEPS/UTIL.d
		set SFLAG = "-s"
		breaksw
	case "-depend":		# generate dependencies for targets
		set defaultrules = "depends.mk"
		set ext = "d"
		breaksw
	case "-development":	# set development environ variable
		setenv DEVELOPMENT t
		breaksw
	case "-strip":		# set strip objects environ variable
		setenv STRIPOBJS t
		breaksw
	case "-print":		# print the makefile instead of executing it
		set MAKE = $cwd/debug
		breaksw
	case "-debug":		# walk thru makefile, printing out the targets
		set MAKE = ( $MAKE -n )
		breaksw
	case "-silent":		# simulate the "@@" construct
		set MAKE = ( $MAKE -s )
		breaksw
	case "-touch":		# touch targets instead of making them
		set MAKE = ( $MAKE -t )
		breaksw
	case "-parallel":
		set PARALLELMAKE
		set PFLAG = "-parallel"
		breaksw
	case "-d*":
		set  defs = ( $defs `echo $i | sed -e s/-d//` )
#	        set DFLAGS = ( $DFLAGS $i )
		set MAKE = ( $MAKE `echo $i | sed -e s/-d//` )
                breaksw
        case "-*":
                set opts = ( $opts $i )
		set MAKE = ( $MAKE $i )
                breaksw
	default:
		set targs = ( $targs $i )
		breaksw
	endsw
end

#
# build the targets the user asked for
# organized according to the most frequently used targets,
# modules (parser,planner, etc. ) are listed alphabetically in part 2
#
foreach i ( $targs )
	#
	# part 1 - everybody's favorite targets
	#
	switch ( $i )
	case "quick-link":	# assume all big .o's are up to date
	cat config.mk postgres.mk $defaultrules \
	| ( cd .. ; $MAKE POSTGRES.$ext )
	breaksw
	case "alltests":
		pushd $POSTGRESHOME/test
		sh ./alltests.sh
		popd
		breaksw
	case "postgres":  	# the postgres binary in the obj dir
		if ($?PARALLELMAKE) then
		    foreach i (access command executor lib main parser planner \
			       port rewrite rules storage tcop utils)
			echo Make $i in parallel;
			Make -parallel $i &
		    end
		    wait
		    echo parallel phase done
		else
		endif
		cat config.mk \
		FILES/{main,commands,executor,parser}.mkf \
		FILES/{planner,rewrite,rules,tcop,inh}.mkf \
		FILES/{access,libraries,storage,utilities}.mkf \
		FILES/bootstrap.mkf \
		port.mk postgres.mk \
		$defaultrules \
		$accessdeps $commanddeps $executordeps $libdeps \
		$maindeps $parserdeps $plannerdeps $rewritedeps $portdeps \
		$rulesdeps $storagedeps $tcopdeps $utilsdeps \
		| (cd ..; $MAKE POSTGRES.$ext)
		breaksw
	case "postpure":  	# the "pure" postgres binary in the obj dir
		if ($?PARALLELMAKE) then
		    foreach i (access command executor lib main parser planner \
			       port rewrite rules storage tcop utils)
			echo Make $i in parallel;
			Make -parallel $i &
		    end
		    wait
		    echo parallel phase done
		else
		endif
		cat config.mk \
		FILES/{main,commands,executor,parser}.mkf \
		FILES/{planner,rewrite,rules,tcop,inh}.mkf \
		FILES/{access,libraries,storage,utilities}.mkf \
		FILES/bootstrap.mkf \
		port.mk postgres.mk \
		$defaultrules \
		$accessdeps $commanddeps $executordeps $libdeps \
		$maindeps $parserdeps $plannerdeps $rewritedeps $portdeps \
		$rulesdeps $storagedeps $tcopdeps $utilsdeps \
		| (cd ..; $MAKE POSTPURE.$ext)
		breaksw
	case "inh":		# the nodes stuff, use before postgres
		cat config.mk FILES/inh.mkf inh.mk $defaultrules \
		| (cd ..; $MAKE allobjs)
		breaksw
	#
	# part 2 - modules within postgres
	#
	case "access":		# the access methods module
		cat config.mk \
		FILES/access.mkf postgres.mk $defaultrules $accessdeps \
		| (cd ..; $MAKE ACCESS.$ext)
		breaksw
	case "command":		# the various utilities commands
		cat config.mk \
		FILES/commands.mkf postgres.mk $defaultrules $commanddeps \
		| (cd ..; $MAKE COMMANDS.$ext)
		breaksw
	case "executor":	# the executor module
		cat config.mk \
		FILES/executor.mkf postgres.mk $defaultrules $executordeps \
		| (cd ..; $MAKE EXECUTOR.$ext)
		breaksw
	case "lib":		# various lowlevel libraries
		cat config.mk \
		FILES/libraries.mkf postgres.mk $defaultrules $libdeps \
		| (cd ..; $MAKE LIB.$ext)
		breaksw
	case "main":		# main()
		cat config.mk \
		FILES/main.mkf postgres.mk $defaultrules $maindeps \
		| (cd ..; $MAKE MAIN.$ext)
		breaksw
	case "parser":		# the parser module
		cat config.mk \
		FILES/parser.mkf postgres.mk $defaultrules $parserdeps \
		| (cd ..; $MAKE PARSER.$ext)
		breaksw
	case "planner":		# the planner module
		cat config.mk \
		FILES/planner.mkf postgres.mk $defaultrules $plannerdeps \
		| (cd ..; $MAKE PLANNER.$ext)
		breaksw
	case "port":		# the port specific module
		cat config.mk \
		port.mk postgres.mk $defaultrules $portdeps \
		| (cd ..; $MAKE PORT.$ext)
		breaksw
	case "rewrite":		# the rewrite rules module
		cat config.mk FILES/rewrite.mkf \
		postgres.mk $defaultrules $rewritedeps \
		| (cd ..; $MAKE REWRITE.$ext)
		breaksw
	case "rules":		# the tuple level rules module
		cat config.mk FILES/rules.mkf \
		postgres.mk $defaultrules $rulesdeps \
		| (cd ..; $MAKE RULES.$ext)
		breaksw
	case "storage":		# the storage manager module
		cat config.mk FILES/storage.mkf \
		postgres.mk $defaultrules $storagedeps \
		| (cd ..; $MAKE STORAGE.$ext)
		breaksw
	case "tcop":		# the traffic cop
		cat config.mk FILES/tcop.mkf \
		postgres.mk $defaultrules $tcopdeps \
		| (cd ..; $MAKE TCOP.$ext)
		breaksw
	case "utils":		# misc utility code
		cat config.mk \
		FILES/utilities.mkf postgres.mk $defaultrules $utilsdeps \
		| (cd ..; $MAKE UTIL.$ext)
		breaksw
	#"
	#" Part 3 - utility type targets (not actually for compile/link cycle
	#"
	case "help":
		egrep '(case \")' Make 
		breaksw
	case "links":		# links from obj to src directory
		cat config.mk misc.mk | $MAKE links
		breaksw
	case "missing":		
		cat config.mk \
		support.mk $defaultrules | $MAKE missing
		breaksw
	case "newfiles":	# files that you haven't checked out
		cat config.mk misc.mk | $MAKE newfiles
		breaksw
	case "getfiles":
		cat config.mk misc.mk | $MAKE newfiles_co
		breaksw
	case "newfiles_co":	# Make newfiles + check out
		cat config.mk misc.mk | $MAKE newfiles_co
		breaksw
	case "obsfiles":	# files you have that I don't believe exist
		cat config.mk misc.mk | $MAKE obsfiles
		breaksw
	#"
	#" Part 4a - support programs (not often recompiled )
	#"
	case "bkifiles":	# local.bki and dbdb.bki, needed by createdb
		cat config.mk FILES/support.mkf support.mk $defaultrules \
		| (cd ..; $MAKE bkifiles)
		breaksw
	case "rmbkifiles":	# removes local.bki and dbdb.bki
		cat config.mk FILES/support.mkf support.mk $defaultrules \
		| (cd ..; $MAKE rmbkifiles)
		breaksw
	case "cinterface":	# library against which to link support targets
		cat config.mk \
		FILES/{access,libraries,storage,utilities,inh}.mkf \
		port.mk support.mk cinterface.mk $defaultrules \
		| (cd ..; $MAKE cinterface)
		breaksw
	case "pg_uid":	# determines postgres' uid
		cat config.mk \
		FILES/support.mkf support.mk $defaultrules \
		| (cd ..; $MAKE pg_uid)
		breaksw
	case "pg_version":	# database creation utility
		cat config.mk \
		FILES/support.mkf support.mk $defaultrules \
		| (cd ..; $MAKE pg_version)
		breaksw
	case "createdb":
		cat config.mk \
		FILES/support.mkf support.mk $defaultrules \
		| (cd ..; $MAKE createdb)
		breaksw
		breaksw
	case "destroydb":
		cat config.mk \
		FILES/support.mkf support.mk $defaultrules \
		| (cd ..; $MAKE destroydb)
		breaksw
	case "libpq":
		cat config.mk \
		FILES/support.mkf support.mk $defaultrules \
		| (cd ..; $MAKE libpq)
		breaksw
	case "monitor":		# the terminal monitor
		cat config.mk \
		FILES/support.mkf support.mk $defaultrules \
		| (cd .. ; $MAKE monitor)
		breaksw
	case "pagedoc":		# the postgres page doctor
		cat config.mk \
		FILES/support.mkf support.mk $defaultrules \
		| (cd .. ; $MAKE pagedoc)
		breaksw
	case "shmemdoc":	# the postgres shared memory doctor
		cat config.mk \
		FILES/support.mkf support.mk $defaultrules \
		| (cd .. ; $MAKE shmemdoc)
		breaksw
	case "xexemon":		# the X executor monitor
		cat config.mk \
		FILES/support.mkf support.mk $defaultrules \
		| (cd .. ; $MAKE xexemon)
		breaksw
	case "postmaster":	# make me if you want multi-user
		cat config.mk \
		FILES/{access,libraries,storage,utilities,inh}.mkf \
		port.mk support.mk cinterface.mk postmaster.mk $defaultrules \
		| (cd ..; $MAKE postmasterlinks)
		cat config.mk \
		FILES/{access,libraries,storage,utilities,inh}.mkf \
		port.mk support.mk cinterface.mk postmaster.mk $defaultrules \
		| (cd ..; $MAKE postmaster)
		breaksw
	case "puremaster":	# make me if you want multi-user
		cat config.mk \
		FILES/{access,libraries,storage,utilities,inh}.mkf \
		port.mk support.mk cinterface.mk postmaster.mk $defaultrules \
		| (cd ..; $MAKE postmasterlinks)
		cat config.mk \
		FILES/{access,libraries,storage,utilities,inh}.mkf \
		port.mk support.mk cinterface.mk postmaster.mk $defaultrules \
		| (cd ..; $MAKE puremaster)
		breaksw
	case "puremonitor":		# the terminal monitor
		cat config.mk \
		FILES/support.mkf support.mk $defaultrules \
		| (cd .. ; $MAKE puremonitor)
		breaksw
	case "support":		# all the support targets 
		cat config.mk FILES/support.mkf support.mk cinterface.mk \
		$defaultrules \
		| (cd ..; $MAKE support POSTGRESBIN=$POSTGRESHOME/bin )
		breaksw
	case "vacuum":
		cat config.mk \
		FILES/support.mkf support.mk cinterface.mk $defaultrules \
		| (cd ..; $MAKE support POSTGRESBIN=$POSTGRESHOME/bin)
		breaksw
	case "pg_id":
		cat config.mk \
		FILES/support.mkf support.mk cinterface.mk $defaultrules \
		| (cd ..; $MAKE pg_id)
		break;
	case "everything":
		foreach i ($ALL)
			csh Make $PFLAG $DFLAGS $SFLAG $opts $i
		end
		if (! -e everything.stat) then
			touch everything.stat
			chmod 444 everything.stat
		endif
		breaksw
	case "install":
		if ($ship == 1) then
			if (! -e ./newport.stat) then
				./newport
			endif
		endif
		cp config.mk install$$.mk
		chmod 777 install$$.mk
		echo 'install:' >> install$$.mk
		echo '	@@ sh install.sh $(TREE) $(OD) $(PORTNAME) ' $ship "$MAKE" >>install$$.mk
		if ($?SPRITE_OS) then
			$MAKEF install < install$$.mk
		else
			$MAKE install < install$$.mk
		endif
		/bin/rm -f install$$.mk
		breaksw
	#"
	#" Part 4b - support programs (not often recompiled )
	#"
	case "sample":
		cat config.mk ../sample/Makefile.raw >! ../sample/Makefile
		breaksw
	case "toptest":
		cat config.mk ../test/Makefile.raw >! ../test/Makefile
		breaksw
	#
	# Part 5 : people's personal stuff 
	# 	   it might be argued that this should not be here
	#
        case "test":
                cat config.mk \
                FILES/{commands,executor,parser}.mkf \
                FILES/{planner,rules,inh}.mkf \
                FILES/{access,libraries,storage,utilities}.mkf \
		FILES/{tcop,test}.mkf \
                port.mk test.mk $defaultrules \
                | (cd ..; $MAKE test)
                breaksw
        case "dumpbpages":
                cat FILES/test.mkf config.mk $defaultrules test.mk \
                | (cd ..; $MAKE dumpbpages)
                breaksw
        case "rtdump":
                cat FILES/test.mkf config.mk $defaultrules test.mk \
                | (cd ..; $MAKE rtdump)
                breaksw
        case "testbtree":
                cat FILES/test.mkf config.mk $defaultrules test.mk \
                | (cd ..; $MAKE testbtree)
                breaksw
	case "ifiles":		# intermediate .i files (for debugging)
		cat config.mk FILES/inh.mkf inh.mk \
		| (cd ..; $MAKE genifiles)
		breaksw
	case "rmifiles":	# remove .i files (for debugging)
		cat config.mk FILES/inh.mkf inh.mk \
		| (cd ..; $MAKE rmifiles)
		breaksw
	case "checkout/*":	# checkout files from checkout script
		set script=$i:t 
		set rmscript=0
		if (! -e $script) then
		    if (-e RCS/$script,v) then
			echo using RCS/$script,v ...
			co $script >& /dev/null
			set rmscript=1
		    else
			echo neither $script or RCS/$script,v exists
			exit 1
		    endif
		endif
		cat config.mk $script | (cd ..; $MAKE checkout)
		if ($rmscript == 1) then
		    rm -f $script
		endif
		breaksw
	#
	# Part 5a : cim's stuff.  
	#	    ignore this if you are not cim.
	#
	case "cim-*":		# do cim's stuff
		cat config.mk $HOME/conf/cim.mk | (cd ..; $MAKE $i)
		breaksw
	case "hdep/*":		# find header file dependencies
		setenv HFILE `echo $i | sed -e 's/^[a-zA-Z]*\///'`
		cat config.mk $HOME/conf/cim.mk | (cd ..; $MAKE hdep)
		breaksw
	case "execnodes-ah":	# execnodes.a.h file
		cat config.mk FILES/inh.mkf inh.mk \
		| (cd ..; $MAKE execnodes-ah)
		breaksw
	# 5b. Adam's support stuff
	#     someone besides adam might find this useful
	case "TAGS":
		echo Making TAGS file
		(cd ../src; etags */*.[ch] */*/*.[ch])
		breaksw
	case "usefulstuff":
		echo Making file list + other useful stuff
		(cd ../src; find . -name "*.[ch]" -print > file.list; \
		grep -n elog `cat file.list` > elog.hit; \
		grep -n \#define `cat file.list` > macro.def; \
		etags `cat file.list` )
		breaksw
	#
	# Part 6 : default target
	#
	default:		# makes a specific pathname
		cat config.mk \
		FILES/{commands,executor,parser}.mkf \
		FILES/{planner,rules,tcop,inh}.mkf \
		FILES/{access,libraries,storage,utilities}.mkf \
		port.mk postgres.mk $defaultrules \
		$accessdeps $commanddeps $executordeps $libdeps $maindeps \
		$parserdeps $plannerdeps $portdeps $rulesdeps $storagedeps \
		$tcopdeps $utilsdeps \
		| (cd ..; $MAKE $i)
		breaksw	
	endsw
end

if (! $?PARALLELMAKE) echo "done"
@


1.90
log
@don't redirect output of alltests, it is small and a tad useful
@
text
@d2 1
a2 1
# $Header: /private/mer/pg/newconf/RCS/Make,v 1.89 1992/07/24 22:13:10 mer Exp mer $
d319 10
@


1.89
log
@add an alltests target - regression test now happens w/ one command
@
text
@d2 1
a2 1
# $Header: /users/mer/pg/newconf/RCS/Make,v 1.88 1992/06/24 17:03:55 mer Exp mer $
d126 1
a126 1
		sh ./alltests.sh >&! all.out
@


1.88
log
@only update everything.stat if it doesn't already exist
@
text
@d2 1
a2 1
# $Header: /private/mer/pg/newconf/RCS/Make,v 1.87 1992/06/23 18:20:59 mer Exp mer $
d124 5
@


1.87
log
@add a target for pg_uid to dynamically determine the postgres user id
also make .stat files read only
@
text
@d2 1
a2 1
# $Header: /private/mer/pg2/newconf/RCS/Make,v 1.86 1992/05/21 19:03:42 mer Exp mer $
d364 4
a367 2
		touch everything.stat
		chmod 444 everything.stat
@


1.86
log
@add purify targets
@
text
@d2 1
a2 1
# $Header: /u/mer/pg.new/newconf/RCS/Make,v 1.85 1992/02/25 21:47:44 mer Exp mer $
d284 5
d365 1
@


1.85
log
@add postpure target for purify
@
text
@d2 1
a2 1
# $Header: /u/mer/pg/newconf/RCS/Make,v 1.84 1992/02/24 23:16:54 clarsen Exp mer $
d324 15
@


1.84
log
@added target for toptest.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.83 92/01/11 18:31:49 mao Exp Locker: clarsen $
d146 23
@


1.83
log
@use gnu make, not hong make.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.82 91/11/03 01:10:44 hong Exp Locker: mao $
d345 3
@


1.82
log
@should use csh -f, don't want to execute .cshrc.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.81 91/09/03 08:04:10 kemnitz Exp Locker: hong $
d19 1
a19 1
	set MAKE = "/u/hong/hermes/bin/sun.make -f -"
@


1.81
log
@added target "getfiles", which does the same thing as "newfiles_co" but
is easier to remember.
@
text
@d1 2
a2 2
#! /bin/csh
# $Header: RCS/Make,v 1.80 91/08/30 11:03:07 hong Exp Locker: kemnitz $
@


1.80
log
@to support new Make option "newfiles_co" -- check out all new files
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.79 91/08/06 05:42:17 glass Exp Locker: hong $
d234 3
@


1.79
log
@fixed useful stuff target slightly -- added better etags support
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.78 91/07/28 02:05:42 glass Exp Locker: glass $
d234 3
@


1.78
log
@added stuff to my 'usefulstuff' target to find macro definitions
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.77 91/07/24 16:36:55 hong Exp Locker: glass $
d416 2
a417 1
		grep -n \#define `cat file.list` > macro.def; )
@


1.77
log
@get rid of the subshell stuff so that wait will work correctly
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.76 91/07/23 23:46:58 hong Exp Locker: hong $
d415 2
a416 1
		grep -n elog `cat file.list` > elog.hit )
@


1.76
log
@support parallel make for parallel architectures
use -parallel flag
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.75 91/06/05 09:57:29 glass Exp Locker: hong $
a19 1
	set PARALLELMAKE
d48 1
d93 1
d128 2
a129 2
			echo Make $i in parallel
			(Make $i &)
d132 1
d313 1
a313 1
			csh Make $DFLAGS $SFLAG $opts $i
@


1.75
log
@added TAGS and framework for storing useful greps like "elog("
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.74 91/05/13 23:15:41 kemnitz Exp Locker: glass $
d20 1
d91 3
d124 9
d432 1
a432 1
echo "done"
@


1.74
log
@took "cinterface" out of ALL
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.73 91/05/13 01:12:25 kemnitz Exp Locker: kemnitz $
d390 11
@


1.73
log
@got rid of "backend".
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.72 91/05/08 21:28:54 kemnitz Exp Locker: kemnitz $
d45 1
a45 1
set ALL = (inh postgres cinterface support postmaster )
@


1.72
log
@Sparcs have to have the Make target BEFORE any macro assignments.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.71 91/05/07 22:33:01 mao Exp Locker: kemnitz $
d124 1
a225 5
	case "backend":		# the "new" ami interpreter
		cat config.mk FILES/support.mkf support.mk cinterface.mk \
		$defaultrules \
		| (cd ..; $MAKE backend)
		breaksw
@


1.71
log
@fix invocation for support
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.70 91/05/07 21:17:40 mao Exp $
d288 1
a288 1
		| (cd ..; $MAKE POSTGRESBIN=$POSTGRESHOME/bin support)
d293 1
a293 1
		| (cd ..; $MAKE POSTGRESBIN=$POSTGRESHOME/bin vacuum)
@


1.70
log
@vacuum cleaner is now a one-line shell script
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.69 91/05/01 00:04:54 cimarron Exp Locker: mao $
d288 1
a288 1
		| (cd ..; $MAKE POSTGRESBIN=$(POSTGRESHOME)/bin support)
@


1.69
log
@corrected COMMAND. to COMMANDS. in command target
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.68 91/04/12 14:58:51 mao Exp Locker: cimarron $
d6 1
a269 5
	case "vcontrol":	# the vacuum daemon controller
		cat config.mk \
		FILES/support.mkf support.mk $defaultrules \
		| (cd .. ; $MAKE vcontrol)
		breaksw
d288 1
a288 1
		| (cd ..; $MAKE support)
d290 1
a290 1
	case "vacuumd":
d293 1
a293 1
		| (cd ..; $MAKE vacuumd)
@


1.68
log
@add entry for sample programs
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.67 91/03/21 19:37:07 kemnitz Exp Locker: mao $
d145 1
a145 1
		| (cd ..; $MAKE COMMAND.$ext)
@


1.67
log
@uses $MAKE everywhere.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.66 91/03/07 01:56:22 kemnitz Exp Locker: kemnitz $
d222 1
a222 1
	#" Part 4 - support programs (not often recompiled )
d326 6
@


1.66
log
@made new target for createdb
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.65 91/02/24 09:13:27 mao Exp Locker: kemnitz $
d18 1
a18 1
	set MAKE = "~hong/hermes/bin/sun.make -f -"
d319 1
a319 1
		echo '	@@ sh install.sh $(TREE) $(OD) $(PORTNAME) ' $ship >>install$$.mk
d323 1
a323 1
			make -f install$$.mk install
@


1.65
log
@new test program knows how to dump rtree pages
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.64 90/10/23 15:29:06 kemnitz Exp Locker: mao $
d249 4
a252 1
		cat config.mk support.mk | (cd ..; $MAKE createdb)
@


1.64
log
@Fixed syntax error
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.63 90/10/23 14:54:18 kemnitz Exp $
d340 4
@


1.63
log
@Added test for using Wei's make.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.62 90/10/23 14:49:20 kemnitz Exp $
d17 1
a17 2
else if (`hostname` == "hermes.Berkeley.EDU")
then
@


1.62
log
@Added target for pg_id
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.60 90/10/18 10:41:59 goh Exp $
d14 6
a19 3
setenv SHELL /bin/sh
set MAKEF = "/postdev/choi/make -f -"
set MAKE = "/postdev/choi/make -f -"
d21 1
a21 1
set MAKE = "make -f -"
@


1.61
log
@cim misnamed the module "COMMAND", should be "COMMANDS"
@
text
@d143 1
a143 1
		| (cd ..; $MAKE COMMANDS.$ext)
d294 5
@


1.60
log
@added in missing "breaksw" commands for "lib" and "main" targets
- jeff
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.59 90/10/15 20:55:54 cimarron Exp Locker: goh $
d143 1
a143 1
		| (cd ..; $MAKE COMMAND.$ext)
@


1.59
log
@minor fix to my header file dependency finder..
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.58 90/10/14 16:06:20 kemnitz Exp Locker: cimarron $
d154 1
d159 1
@


1.58
log
@Added new target "postmasterlinks" as Sun make didn't handle the old
scheme correctly.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.57 90/10/11 10:28:13 cimarron Exp Locker: kemnitz $
d370 1
a370 1
		setenv HFILE $i:t
@


1.57
log
@added a target to facilitate easy generation of execnodes.a.h
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.56 90/10/08 14:53:44 cimarron Exp Locker: cimarron $
d273 4
@


1.56
log
@added missing rewrite files to Make postgres target
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.55 90/10/04 10:54:40 goh Exp $
d368 4
@


1.55
log
@minor fix to make compiling rewrite dependencies work right
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.54 90/10/04 10:28:28 goh Exp $
d119 1
a119 1
		FILES/{planner,rules,tcop,inh}.mkf \
d124 1
a124 1
		$maindeps $parserdeps $plannerdeps $portdeps \
@


1.54
log
@added a target "rewrite" for the rewrite module
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.53 90/10/04 10:16:13 goh Exp $
d175 1
a175 1
		postgres.mk $defaultrules $rulesdeps \
@


1.53
log
@added new target quick-link ...
useful when you knwo the big ".o"s are up to date
e.g. Make parser ; Make quick-link
is much faster than "Make postgres"
because only a small sub-graph of the dependency graph needs
to be traversed.  

Only works if you know the changes you made are local to one
"module"

- jeff
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.52 90/09/19 14:40:49 hong Exp $
d29 1
d58 1
d172 5
@


1.52
log
@now "Make createdb" works
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.51 90/09/04 19:27:29 cimarron Exp Locker: hong $
d110 4
@


1.51
log
@added the X execution monitor as a target..
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.50 90/08/22 17:25:10 kemnitz Exp Locker: cimarron $
d232 3
@


1.50
log
@Added stuff for pg_version - got rid of createdb target
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.49 90/08/21 12:45:37 cimarron Exp Locker: kemnitz $
d252 5
@


1.49
log
@added -strip flag to Make which sets STRIPOBJS environment variable
which causes the final targets to be stripped after compilation.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.48 90/08/21 09:20:54 choi Exp Locker: cimarron $
d228 1
a228 1
	case "createdb":	# database creation utility
d231 1
a231 1
		| (cd ..; $MAKE createdb)
@


1.48
log
@*** empty log message ***
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.47 90/08/20 13:49:06 choi Exp Locker: choi $
d5 1
d69 3
@


1.47
log
@lines added for Sprite OS port.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.46 90/08/17 15:34:47 kemnitz Exp Locker: choi $
@


1.46
log
@Added target for vcontrol
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.45 90/08/09 18:26:55 kemnitz Exp Locker: kemnitz $
d14 1
d78 1
a78 1
	case "-touch"		# touch targets instead of making them
d81 1
a81 1
	case "-d*"
d281 5
a285 1
		make -f install$$.mk install
@


1.45
log
@Added stuff so "Make install" does everything, at least when shipped.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.44 90/08/08 11:30:57 cimarron Exp Locker: kemnitz $
d242 5
@


1.44
log
@improved on checkout/ target.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.43 90/08/08 10:59:27 cimarron Exp Locker: cimarron $
d6 6
d263 1
d266 5
d274 1
a274 1
		echo '	@@ sh install.sh $(TREE) $(OD) $(PORTNAME) ' >> install$$.mk
d276 1
a276 1
		rm install$$.mk
@


1.43
log
@added a target to allow users to run checkout scripts.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.42 90/08/08 03:29:38 choi Exp Locker: cimarron $
d296 16
a311 1
		cat config.mk $i:t | (cd ..; $MAKE checkout)
d321 1
a321 1
		setenv HFILE $i:t ; \
@


1.42
log
@if statement added for sprite port
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.41 90/08/03 15:33:54 cimarron Exp Locker: choi $
d294 3
@


1.41
log
@added new support for header file dependency generation.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.40 90/08/01 15:28:55 sp Exp Locker: cimarron $
d6 7
a35 1
set MAKE = "make -f -"
@


1.40
log
@changes because of the new module MAIN.o 
plus some minor changes for the test programs.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.39 90/07/23 20:31:23 kemnitz Version_2 Locker: sp $
d4 2
d8 3
a11 1
set libdeps =
d13 1
a13 1
set executordeps =
d19 3
d35 12
a46 10
		#set accessdeps = DEPS/access.deps
		set commanddeps = DEPS/commands.deps
		set libdeps = DEPS/lib.deps
		set parserdeps = DEPS/parser.deps
		set plannerdeps = DEPS/planner.deps
		set executordeps = DEPS/executor.deps
		set rulesdeps = DEPS/rules.deps
		set storagedeps = DEPS/storage.deps
		set tcopdeps = DEPS/tcop.deps
		set utilsdeps = DEPS/utils.deps
d49 7
d95 1
a95 2
		FILES/{main.mkf} \
		FILES/{commands,executor,parser}.mkf \
d98 6
a103 5
		port.mk postgres.mk defaults.mk \
		$commanddeps $executordeps $parserdeps $plannerdeps \
		$rulesdeps $tcopdeps $accessdeps $libdeps $storagedeps\
		$utilsdeps \
		| (cd ..; $MAKE postgres)
d106 1
a106 1
		cat config.mk FILES/inh.mkf inh.mk \
d114 2
a115 2
		FILES/access.mkf postgres.mk defaults.mk $accessdeps \
		| (cd ..; $MAKE)
d119 2
a120 2
		FILES/commands.mkf postgres.mk defaults.mk $commanddeps \
		| (cd ..; $MAKE)
d124 2
a125 2
		FILES/executor.mkf postgres.mk defaults.mk $executordeps \
		| (cd ..; $MAKE)
d129 2
a130 2
		FILES/libraries.mkf postgres.mk defaults.mk $libdeps \
		| (cd ..; $MAKE)
d133 2
a134 2
		FILES/main.mkf postgres.mk defaults.mk $libdeps \
		| (cd ..; $MAKE)
d137 2
a138 2
		FILES/parser.mkf postgres.mk defaults.mk $parserdeps \
		| (cd ..; $MAKE)
d142 2
a143 2
		FILES/planner.mkf postgres.mk defaults.mk $plannerdeps \
		| (cd ..; $MAKE)
d145 5
d152 2
a153 2
		postgres.mk defaults.mk $rulesdeps \
		| (cd ..; $MAKE)
d155 5
d162 2
a163 2
		postgres.mk defaults.mk $tcopdeps \
		| (cd ..; $MAKE)
d167 2
a168 2
		FILES/utilities.mkf postgres.mk defaults.mk $utilsdeps \
		| (cd ..; $MAKE)
d181 1
a181 1
		support.mk defaults.mk | $MAKE missing
d193 2
a194 1
		cat config.mk FILES/support.mkf support.mk cinterface.mk defaults.mk \
d198 1
a198 1
		cat config.mk FILES/support.mkf support.mk defaults.mk \
d202 1
a202 1
		cat config.mk FILES/support.mkf support.mk defaults.mk \
d208 1
a208 1
		port.mk support.mk cinterface.mk defaults.mk \
d213 1
a213 1
		FILES/support.mkf support.mk defaults.mk \
d218 1
a218 1
		FILES/support.mkf support.mk defaults.mk \
d223 1
a223 1
		FILES/support.mkf support.mk defaults.mk \
d228 1
a228 1
		FILES/support.mkf support.mk defaults.mk \
d234 1
a234 1
		port.mk support.mk cinterface.mk postmaster.mk defaults.mk \
d238 2
a239 1
		cat config.mk FILES/support.mkf support.mk cinterface.mk defaults.mk \
d244 1
a244 1
		FILES/support.mkf support.mk cinterface.mk defaults.mk \
d270 1
a270 1
                port.mk test.mk defaults.mk \
d274 1
a274 1
                cat FILES/test.mkf config.mk defaults.mk test.mk \
d278 1
a278 1
                cat FILES/test.mkf config.mk defaults.mk test.mk \
d293 1
a293 1
	case "cim-*":	# do cim's stuff
d296 4
d308 4
a311 4
		port.mk postgres.mk defaults.mk \
		$commanddeps $executordeps $parserdeps $plannerdeps \
		$rulesdeps $tcopdeps $accessdeps $libdeps $storagedeps\
		$utilsdeps \
@


1.39
log
@Made "make install" not print its command line.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.38 90/07/23 20:28:56 kemnitz Exp Locker: kemnitz $
d79 1
d115 4
d237 6
a242 1
                cat FILES/test.mkf config.mk defaults.mk test.mk \
@


1.38
log
@New cinterface scheme (uses cinterface.mk)
New stuff to install ipcclean
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.37 90/07/13 17:19:48 kemnitz Exp Locker: kemnitz $
d223 1
a223 1
		echo '	sh install.sh $(TREE) $(OD) $(PORTNAME) ' >> install$$.mk
@


1.37
log
@Fixed "destroydb" problem.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.36 90/06/18 16:05:32 cimarron Exp Locker: kemnitz $
d162 1
a162 1
		cat config.mk FILES/support.mkf support.mk defaults.mk \
d176 1
a176 1
		port.mk support.mk postmaster.mk defaults.mk \
d189 1
a189 1
	case "libpq":		# library to link monitor (obsolete soon)
d202 1
a202 1
		port.mk support.mk postmaster.mk defaults.mk \
d206 1
a206 1
		cat config.mk FILES/support.mkf support.mk defaults.mk \
d211 1
a211 1
		FILES/support.mkf support.mk defaults.mk \
d223 1
a223 1
		echo '	sh install.sh $(TREE) $(OD) ' >> install$$.mk
a272 2


@


1.36
log
@added bkifiles and rmbkifiles targets and made a change
to the -print option so that it works correctly.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.35 90/06/04 09:27:21 cimarron Exp Locker: cimarron $
d184 5
a188 5
        case "destroydb":
                cat config.mk \
                FILES/support.mkf support.mk \
                | (cd ..; $MAKE destroydb)
                breaksw
a218 1

@


1.35
log
@added a target to do cim- personal stuff.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.34 90/05/31 09:40:49 cimarron Exp $
d41 1
a41 1
		set MAKE = debug
d164 8
@


1.34
log
@fixed default target so that single targets can now be made with Make.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.33 90/04/02 11:10:02 cimarron Exp $
d244 10
@


1.33
log
@added another ifiles target.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.32 90/04/02 10:57:11 cimarron Exp $
d244 11
a254 3
	default:
		echo Make: target \"$i\" unknown.
		exit 1
@


1.32
log
@added target to generate .i files -- intermediate results of
running the Gen scripts.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.31 90/03/28 20:48:01 mao Exp $
d239 4
@


1.31
log
@add test, dumpbpages
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.30 90/03/04 15:52:33 mao Exp Locker: goh $
d236 4
@


1.30
log
@due to changes in newtree/newport scheme, Make stopped working; get it
going again.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.29 90/03/02 20:30:43 kemnitz Exp Locker: mao $
d223 9
@


1.29
log
@Added chmod so that make install would work with the new config
stuff.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.28 90/02/12 20:09:56 mao Exp Locker: kemnitz $
d86 1
a86 1
		| $MAKE postgres
d90 1
a90 1
		| $MAKE allobjs
d98 1
a98 1
		| $MAKE
d103 1
a103 1
		| $MAKE
d108 1
a108 1
		| $MAKE
d113 1
a113 1
		| $MAKE
d117 1
a117 1
		| $MAKE
d122 1
a122 1
		| $MAKE
d127 1
a127 1
		| $MAKE
d132 1
a132 1
		| $MAKE 
d137 1
a137 1
		| $MAKE 
d163 1
a163 1
		| $MAKE backend
d169 1
a169 1
		| $MAKE cinterface
d174 1
a174 1
		| $MAKE createdb
d179 1
a179 1
                | $MAKE destroydb
d184 1
a184 1
		| $MAKE libpq
d195 1
a195 1
		| $MAKE postmaster
d199 1
a199 1
		| $MAKE support
d204 1
a204 1
		| $MAKE vacuumd
@


1.28
log
@fix testbtree rule
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.27 90/02/08 22:11:00 kemnitz Exp Locker: mao $
d214 1
@


1.27
log
@Various minor changes.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.26 90/02/08 16:31:12 kemnitz Exp Locker: kemnitz $
d223 2
a224 2
                cat config.mk test.mk \
                | $MAKE testbtree
@


1.26
log
@'Make everything' works, as well as 'Make install'
Further revisions coming shortly.
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.25 90/02/07 18:25:34 sp Exp Locker: kemnitz $
d194 1
a194 1
		port.mk support.mk defaults.mk postmaster.mk\
@


1.25
log
@postmaster.mk is now included when making 'cinterface'
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.24 90/02/07 16:38:29 sp Exp $
d194 1
a194 1
		port.mk support.mk defaults.mk\
d205 13
@


1.24
log
@now it works & understands most of the options
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.23 90/02/07 08:46:11 goh Exp $
d168 1
a168 1
		port.mk support.mk defaults.mk \
@


1.23
log
@oops, checked in previous file from wrong conf directory
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.10 89/10/03 15:48:14 mao Exp $
d16 2
a17 3
set MAKE = "make -f -"
# set defs =
# set opts =
d20 3
a22 2
# set DFLAGS =
# set SFLAG =
a39 4
#	case "-d*"
#		set  defs = ( $defs `echo $i | sed -e s/-d//` )
#	        set DFLAGS = ( $DFLAGS $i )
#               breaksw
d41 1
a41 1
		set make = debug
d44 1
a44 1
		set make = ( $make -n )
d47 1
a47 1
		set make = ( $make -s )
d50 1
a50 1
		set make = ( $make -t )
d52 9
a60 3
#        case "-*":
#                set opts = ( $opts $i )
#                breaksw
@


1.22
log
@moved defaults into default.mk, so all the different
targets now include default.mk
@
text
@d16 1
a16 1
set MAKE = make -f -
@


1.21
log
@added executor to cinterface
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.20 89/11/24 14:18:53 hirohama Exp Locker: mao $
d7 1
d11 1
a12 1
set storagedeps = 
d16 3
a18 2
set defs =
set opts =
d20 3
a22 7
#
#  these variables support the "Make everything" rule,
#  and aren't used anywhere else.
#
set ALL = (inh postgres cinterface postmaster support utils)
set DFLAGS =
set SFLAG =
d27 35
a61 27

		case "-s":
			set accessdeps = DEPS/access.deps
			set commanddeps = DEPS/command.deps
			set parserdeps = DEPS/parser.deps
			set plannerdeps = DEPS/planner.deps
			set executordeps = DEPS/executor.deps
			set rulesdeps = DEPS/rules.deps
			set storagedeps = DEPS/storage.deps
			set tcopdeps = DEPS/tcop.deps
			set utilsdeps = DEPS/utils.deps
			set SFLAG = "-s"
			breaksw

		case "-d*":
			set defs = ( $defs `echo $i | sed -e s/-d//` )
			set DFLAGS = ( $DFLAGS $i )
			breaksw

		case "-*":
			set opts = ( $opts $i )
			breaksw

		default:
			set targs = ( $targs $i )
			breaksw

d65 1
a65 2
set MAKE_CMD = "make $defs $opts -f -"

d67 3
a69 1

d71 3
d75 139
a213 131
		case "access":
			cat config.mk \
			FILES/access.mkf postgres.mk $accessdeps \
			| (cd .. ; $MAKE_CMD)
			breaksw
		case "backend":
			cat config.mk FILES/support.mkf support.mk \
			| (cd .. ; $MAKE_CMD backend)
			breaksw
		case "cinterface":
			cat port.mk config.mk \
			FILES/{access,libraries,storage,utilities,inh}.mkf \
			FILES/{executor}.mkf \
			port.mk postmaster.mk \
			| (cd .. ; $MAKE_CMD cinterface)
			breaksw
		case "command":
			cat config.mk \
			FILES/commands.mkf postgres.mk $commanddeps \
			| (cd .. ; $MAKE_CMD)
			breaksw
		case "createdb":
			cat config.mk FILES/support.mkf support.mk \
			| (cd .. ; $MAKE_CMD createdb)
			breaksw
		case "destroydb":
			cat config.mk \
			FILES/support.mkf support.mk \
			| (cd .. ; $MAKE_CMD destroydb)
			breaksw
		case "executor":
			cat config.mk \
			FILES/executor.mkf postgres.mk $executordeps \
			| (cd .. ; $MAKE_CMD)
			breaksw
		case "everything":
			foreach i ($ALL)
				csh Make $DFLAGS $SFLAG $opts $i
			end
			breaksw
		case "inh":
			cat config.mk FILES/inh.mkf inh.mk \
			| (cd .. ; $MAKE_CMD allobjs)
			breaksw
		case "libpq":
			cat config.mk \
			FILES/support.mkf support.mk \
			| (cd .. ; $MAKE_CMD libpq)
			breaksw
		case "links":
			cat config.mk misc.mk \
			| (cd .. ; $MAKE_CMD links)
			breaksw
		case "missing":
			cat config.mk postmaster.mk \
			| (cd .. ; $MAKE_CMD missing)
			breaksw
		case "monitor":
			cat config.mk FILES/support.mkf support.mk \
			| (cd .. ; $MAKE_CMD monitor)
			breaksw
		case "newfiles":
			cat config.mk misc.mk \
			| (cd .. ; $MAKE_CMD newfiles)
			breaksw
		case "obsfiles":
			cat config.mk misc.mk \
			| (cd .. ; $MAKE_CMD obsfiles)
			breaksw
		case "parser":
			cat config.mk \
			FILES/parser.mkf postgres.mk $parserdeps \
			| (cd .. ; $MAKE_CMD)
			breaksw
		case "planner":
			cat config.mk \
			FILES/planner.mkf postgres.mk $plannerdeps \
			| (cd .. ; $MAKE_CMD)
			breaksw
		case "postgres":
			cat config.mk \
			FILES/{commands,executor,parser}.mkf \
			FILES/{planner,rules,tcop,inh}.mkf \
			FILES/{access,libraries,storage,utilities}.mkf \
			port.mk postgres.mk \
			| (cd .. ; $MAKE_CMD postgres)
			breaksw
		case "postmaster":
			cat config.mk \
			FILES/{access,libraries,storage,utilities,inh}.mkf \
			port.mk postmaster.mk \
			| (cd .. ; $MAKE_CMD postmaster)
			breaksw
		case "rules":
			cat config.mk FILES/rules.mkf postgres.mk $rulesdeps \
			| (cd .. ; $MAKE_CMD)
			breaksw
		case "storage":
			cat config.mk \
			FILES/storage.mkf postgres.mk $storagedeps \
			| (cd .. ; $MAKE_CMD)
			breaksw
		case "support":
			cat config.mk FILES/support.mkf support.mk \
			| (cd .. ; $MAKE_CMD support)
			breaksw
		case "tcop":
			cat config.mk FILES/tcop.mkf postgres.mk $tcopdeps \
			| (cd .. ; $MAKE_CMD)
			breaksw
		case "test":
			cat config.mk test.mk \
			| (cd .. ; $MAKE_CMD test)
			breaksw
		case "testbtree":
			cat config.mk test.mk \
			| (cd .. ; $MAKE_CMD testbtree)
			breaksw
		case "utils":
			cat config.mk \
			FILES/utilities.mkf postgres.mk $utilsdeps \
			| (cd .. ; $MAKE_CMD)
			breaksw
		case "vacuumd":
			cat config.mk \
			FILES/support.mkf support.mk \
			| (cd .. ; $MAKE_CMD vacuumd)
			breaksw
		default:
			echo Make: target \"$i\" unknown.
			exit 1
d215 2
@


1.20
log
@added "storage" target
(should "port" and "lib" be added too?)
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.19 89/11/24 13:40:34 hirohama Exp Locker: hirohama $
d77 1
@


1.19
log
@fixed "executor"
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.18 89/11/16 16:03:30 mao Exp Locker: hirohama $
d11 1
d37 1
d159 5
@


1.18
log
@misplaced backslash in rule for monitor
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.17 89/11/12 13:03:47 mao Exp Locker: mao $
d95 1
a95 1
			| (cd.. ; $MAKE_CMD)
@


1.17
log
@add test, testbtree
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.16 89/11/02 20:04:08 mao Exp Locker: mao $
d84 1
a84 2
			cat config.mk \
			FILES/support.mkf support.mk \
d120 1
a120 1
			cat config.mk \ FILES/support.mkf support.mk \
@


1.16
log
@add destroydb
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.15 89/10/21 14:50:03 mao Exp Locker: mao $
d167 8
@


1.15
log
@add postmaster to 'everything' entry
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.14 89/10/11 15:17:43 mao Exp Locker: mao $
d87 5
@


1.14
log
@add port.mk to list of files for cinterface
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.13 89/10/10 19:16:20 mao Exp Locker: mao $
d21 1
a21 1
set ALL = (inh postgres cinterface support utils)
@


1.13
log
@working on sun version
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.12 89/10/09 22:38:53 mao Exp Locker: mao $
d73 1
a73 1
			cat config.mk \
@


1.12
log
@get 'everything' entry working correctly
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.11 89/10/09 15:19:45 mao Exp $
d66 1
a66 1
			| $MAKE_CMD
d70 1
a70 1
			| $MAKE_CMD backend
d81 1
a81 1
			| $MAKE_CMD
d85 2
a86 1
			FILES/support.mkf support.mk | $MAKE_CMD createdb
d91 1
a91 1
			| $MAKE_CMD
d100 1
a100 1
			| $MAKE_CMD allobjs
d104 2
a105 1
			FILES/support.mkf support.mk | $MAKE_CMD libpq
d108 2
a109 1
			cat config.mk misc.mk | $MAKE_CMD links
d112 2
a113 2
			cat config.mk \
			postmaster.mk | (cd .. ; $MAKE_CMD missing)
d116 1
a116 2
			cat config.mk \
			FILES/support.mkf support.mk \
d120 2
a121 1
			cat config.mk misc.mk | $MAKE_CMD newfiles
d124 2
a125 1
			cat config.mk misc.mk | $MAKE_CMD obsfiles
d130 1
a130 1
			| $MAKE_CMD
d135 1
a135 1
			| $MAKE_CMD
d142 2
a143 1
			port.mk postgres.mk | $MAKE_CMD postgres
d153 1
a153 1
			| $MAKE_CMD
d157 1
a157 1
			| $MAKE_CMD support
d161 1
a161 1
			| $MAKE_CMD 
d166 1
a166 1
			| $MAKE_CMD 
d171 1
a171 1
			| $MAKE_CMD vacuumd
@


1.11
log
@new -d flag for passing defs to make; cleaned up arg handling
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.10 89/10/03 15:48:14 mao Exp Locker: mao $
d17 8
d38 1
d43 1
d91 5
@


1.10
log
@add support code, rearrange stuff
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.9 89/09/29 11:16:58 goh Exp Locker: mao $
d14 2
d21 1
a21 1
		case "slowly":
d32 8
d47 2
d56 1
a56 1
			| make -f -
d60 1
a60 1
			| make -f - backend
d66 1
a66 1
			| (cd .. ; make -f - cinterface)
d71 1
a71 1
			| make -f -
d75 1
a75 1
			FILES/support.mkf support.mk | make -f - createdb
d80 1
a80 1
			| make -f -
d84 1
a84 1
			| make -f - allobjs
d88 1
a88 1
			FILES/support.mkf support.mk | make -f - libpq
d91 1
a91 1
			cat config.mk misc.mk | make -f - links
d95 1
a95 1
			postmaster.mk | (cd .. ; make -f - missing)
d100 1
a100 1
			| (cd .. ; make -f - monitor)
d103 1
a103 1
			cat config.mk misc.mk | make -f - newfiles
d106 1
a106 1
			cat config.mk misc.mk | make -f - obsfiles
d111 1
a111 1
			| make -f -
d116 1
a116 1
			| make -f -
d123 1
a123 1
			port.mk postgres.mk | make -f - postgres
d129 1
a129 1
			| (cd .. ; make -f - postmaster)
d133 1
a133 1
			| make -f -
d137 1
a137 1
			| make -f - support
d141 1
a141 1
			| make -f - 
d146 1
a146 1
			| make -f - 
d151 1
a151 1
			| make -f - vacuumd
@


1.9
log
@moved stuff into semi-optimal manner
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.8 89/09/22 01:06:56 goh Exp Locker: goh $
d13 1
a13 11
if ( $#argv > 1 ) then
	switch ($argv[2])
	case "slowly":
		set accessdeps = DEPS/access.deps
		set commanddeps = DEPS/command.deps
		set parserdeps = DEPS/parser.deps
		set plannerdeps = DEPS/planner.deps
		set executordeps = DEPS/executor.deps
		set rulesdeps = DEPS/rules.deps
		set tcopdeps = DEPS/tcop.deps
		set utilsdeps = DEPS/utils.deps
d15 3
a17 3
		breaksw
	default:
		breaksw
d19 10
a28 2
	endsw
endif
d30 3
a32 72
switch ($argv[1])
	case "postgres":
		cat config.mk \
		FILES/{commands,executor,parser}.mkf \
		FILES/{planner,rules,tcop,inh}.mkf \
		FILES/{access,libraries,storage,utilities}.mkf \
		port.mk postgres.mk | make -f - postgres
		breaksw
	case "inh":
		cat config.mk \
		FILES/inh.mkf \
		inh.mk | make -f - allobjs
		breaksw
	case "access":
		cat config.mk FILES/access.mkf postgres.mk $accessdeps \
		| make -f -
		breaksw
	case "command":
		cat config.mk FILES/commands.mkf postgres.mk $commanddeps \
		| make -f -
		breaksw
	case "executor":
		cat config.mk FILES/executor.mkf postgres.mk $executordeps \
		| make -f -
		breaksw
	case "parser":
		cat config.mk FILES/parser.mkf postgres.mk $parserdeps \
		| make -f -
		breaksw
	case "planner":
		cat config.mk FILES/planner.mkf postgres.mk $plannerdeps \
		| make -f -
		breaksw
	case "rules":
		cat config.mk FILES/rules.mkf postgres.mk $rulesdeps \
		| make -f -
		breaksw
	case "tcop":
		cat config.mk FILES/tcop.mkf postgres.mk $tcopdeps \
		| make -f - 
		breaksw
	case "utils":
		cat config.mk FILES/utilities.mkf postgres.mk $utilsdeps \
		| make -f - 
		breaksw
	case "postmaster":
		cat config.mk \
		FILES/{access,libraries,storage,utilities,inh}.mkf \
		port.mk support.mk \
		| (cd .. ; make -f - postmaster)
		breaksw
	case "monitor":
		cat config.mk \
		FILES/{access,libraries,storage,utilities,inh}.mkf \
		port.mk support.mk \
		| (cd .. ; make -f - monitor)
		breaksw
	case "links":
		cat config.mk misc.mk | make -f - links
		breaksw
	case "missing":
		cat config.mk \
		postmaster.mk | (cd .. ; make -f - missing)
		breaksw
	case "newfiles":
		cat config.mk misc.mk | make -f - newfiles
		breaksw
	case "obsfiles":
		cat config.mk misc.mk | make -f - obsfiles
		breaksw
	default:
		echo unknown option $argv[1]
d34 2
a35 2
endsw
echo "done"
d37 1
d39 107
d147 1
a147 3



@


1.8
log
@*** empty log message ***
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.7 89/09/21 13:51:28 goh Exp Locker: goh $
a44 14
	case "postmaster":
		cat config.mk \
		FILES/{storage,utilities}.mkf \
		postmaster.mk | make -f - postmaster
		breaksw
	case "newfiles":
		cat config.mk misc.mk | make -f - newfiles
		breaksw
	case "obsfiles":
		cat config.mk misc.mk | make -f - obsfiles
		breaksw
	case "links":
		cat config.mk misc.mk | make -f - links
		breaksw
d54 1
a54 1
		cat config.mk FILES/executor postgres.mk $executordeps \
d73 1
a73 1
	case "util":
d77 25
d107 6
@


1.7
log
@added port.mk to the list of files for postgres object
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.6 89/09/21 09:57:44 goh Exp Locker: goh $
d36 1
a36 1
		FILES/{planner,rules,tcop}.mkf \
d39 5
@


1.6
log
@left out a breaksw
@
text
@d2 1
a2 1
# $Header: RCS/Make,v 1.5 89/09/21 09:37:07 goh Exp Locker: goh $
d38 1
a38 1
		postgres.mk | make -f - postgres
@


1.5
log
@*** empty log message ***
@
text
@d2 1
a2 1
# $Header:$
d53 1
@


1.4
log
@*** empty log message ***
@
text
@d4 28
d54 2
a55 1
		cat config.mk FILES/access.mkf postgres.mk | make -f -
d58 2
a59 1
		cat config.mk FILES/commands.mkf postgres.mk | make -f -
d62 2
a63 1
		cat config.mk FILES/executor postgres.mk | make -f -
d66 2
a67 2
		cat config.mk FILES/parser.mkf postgres.mk \
		DEPS/parser.deps | make -f - 
d70 2
a71 2
		cat config.mk FILES/planner.mkf postgres.mk \
		DEPS/planner.deps | make -f -
d74 2
a75 1
		cat config.mk FILES/rules.mkf postgres.mk | make -f -
d78 2
a79 1
		cat config.mk FILES/tcop.mkf postgres.mk | make -f - 
d82 2
a83 1
		cat config.mk FILES/utilities postgres.mk | make -f - 
@


1.3
log
@*** empty log message ***
@
text
@d2 1
d7 3
a9 3
		FILES/{commands,executor,parser} \
		FILES/{planner,rules,tcop} \
		FILES/{access,libraries,storage,utilities} \
d14 1
a14 1
		FILES/{storage,utilities} \
d23 2
d26 1
a26 1
		cat config.mk FILES/access postgres.mk | make -f -
d29 1
a29 1
		cat config.mk FILES/commands postgres.mk | make -f -
d35 1
a35 1
		cat config.mk FILES/parser postgres.mk \
d39 1
a39 1
		cat config.mk FILES/planner postgres.mk \
d43 1
a43 1
		cat config.mk FILES/rules postgres.mk | make -f -
d46 1
a46 1
		cat config.mk FILES/tcop postgres.mk | make -f - 
@


1.2
log
@new make script for making postgres and other targets
@
text
@d11 5
d32 2
a33 1
		cat config.mk FILES/parser postgres.mk | make -f - 
d36 2
a37 1
		cat config.mk FILES/planner postgres.mk | make -f -
@


1.1
log
@Initial revision
@
text
@d8 1
a10 5
	case "library":
		cat config.mk port.mk \
		FILES/{access,libraries,storage,utilities} \
		postgres.mk | make -f - library
		breaksw
d20 6
d31 9
@
