🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1748

make 3.58 bug

#1748
From: Gregg Whitcomb
Date: Thu, 22 Feb 1990 19:07
45 lines
1482 bytes
dependency files created during a make are not searched for using VPATH
when used by other target files.

example:

two subdirectories were created.  "obj" for object files and "src" for the
source file.

---------------------------

contents:

src: target.x
obj: 

here's the makefile:
---------------------------
% more tmakefile
VPATH = ../src
target: target.c
target.c: target.x
        cp $(<D)target.x $(<D)$@
---------------------------

here's the execution:
---------------------------
% /usr/local/make -f ../tmakefile -C obj
cp ../src/target.x ../src/target.c
cc     target.c   -o target
cpp: error 0: No source file target.c
make: *** [target] Error 1
---------------------------

the cc command should have been:
cc ../src/target.c -o target

If the makefile runs again, it works (since target.c exists now)
---------------------------
% !!
/usr/local/make -f ../tmakefile -C obj
cc     ../src/target.c   -o target
---------------------------

-Gregg Whitcomb (whitcomb@ic.berkeley.edu)
Technical Details
Message-ID: <9002221907.AA07652@vivaldi.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!VIVALDI.BERKELEY.EDU!whitcomb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!VIVALDI.BERKELEY.EDU!whitcomb
From: whitcomb@VIVALDI.BERKELEY.EDU (Gregg Whitcomb)
Newsgroups: gnu.utils.bug
Subject: make 3.58 bug
Message-ID: <9002221907.AA07652@vivaldi.Berkeley.EDU>
Date: 22 Feb 90 19:07:47 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 45