[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

214.0. "how to mask a file from the backing tree?" by SMURF::FILTER (Automatic Posting Software - mail to flume::puck) Fri Jul 16 1993 14:25

Date Of Receipt: 	15-JUL-1993 16:37:32.55
From: 	ABYSS::jtkohl "John Kohl"
To: 	abyss::buildhelp
CC: 	
Subj: 	how to mask a file from the backing tree?

I want to test out a VPATH change to a Makefile, so that a file which
used to be provided in the program directory now comes from elsewhere.
How can I have the Makefile ignore the backing tree copy of the file, so
that the VPATH is activated and the alternate copy from the other
directory is used?

e.g. building ./usr/sbin/ufs_fsck

/usr/sde/osf1/build/agosminor.nightly/src/usr/sbin/ufs_fsck/ufs_tables.c

is the file I want to make "go away", so that a VPATH of:
VPATH		= ${MAKETOP}/kernel/ufs

will cause the Makefile to find the new file:

/usr/sde/osf1/build/agosminor.nightly/src/kernel/ufs/ufs_tables.c

By default, the backing tree seems to happen before the VPATH.

Suggestions?

John

T.RTitleUserPersonal
Name
DateLines
214.1RE: how to mask a file from the backing tree?SMURF::FILTERAutomatic Posting Software - mail to flume::puckFri Jul 16 1993 14:3541
Date Of Receipt: 	15-JUL-1993 17:06:36.97
From: 	ABYSS::decwet::peterson
To: 	ABYSS::jtkohl
CC: 	abyss::buildhelp
Subj: 	RE: how to mask a file from the backing tree?

make determines the backing trees from the SOURCEDIR environment variable.
resetting its value in your sandbox's shared rc file should short-circuit make's 
normal search.  Note that this is a global change, so all files or their links 
must be in your sandbox directories.
--Kim
==========================================================================
From:	ABYSS::jtkohl "John Kohl"   15-JUL-1993 13:38:30.10
To:	abyss::buildhelp
CC:	
Subj:	how to mask a file from the backing tree?

I want to test out a VPATH change to a Makefile, so that a file which
used to be provided in the program directory now comes from elsewhere.
How can I have the Makefile ignore the backing tree copy of the file, so
that the VPATH is activated and the alternate copy from the other
directory is used?

e.g. building ./usr/sbin/ufs_fsck

/usr/sde/osf1/build/agosminor.nightly/src/usr/sbin/ufs_fsck/ufs_tables.c

is the file I want to make "go away", so that a VPATH of:
VPATH		= ${MAKETOP}/kernel/ufs

will cause the Makefile to find the new file:

/usr/sde/osf1/build/agosminor.nightly/src/kernel/ufs/ufs_tables.c

By default, the backing tree seems to happen before the VPATH.

Suggestions?

John