🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50236

gcc automatic generation of makefile dependencies

#50236
From: Richard_Bibb
Date: Wed, 03 Nov 1993 18:02
31 lines
1385 bytes
Can you make gcc stop checking for the existence of the #include files
when generating the file dependency list. This causes me problems as
don't want to supply path names for the include files used by the
code. I would much rather use GNUmake's VPATH option which will
deposit the include file in the working directory at compile time.

As an aside, I also cannot get the vpath directive to work. In the
following example make does not appear to check for dependencies in the
./temp directory.

vpath %.h ./temp

test: trial.h
	@trial.h
	@echo "Done TRIAL"
	@rm -f *.h


However when using the VPATH variable everything works ok

VPATH = temp

test: trial.h
	@echo "Found trial.h"
	@rm -f *.h

I would be grateful for any help you could give

Regards, 

Richard Bibb
Technical Details
Message-ID: <9311031748.AA24966@cuthbert.sdd>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!gec-epl.co.UK!scone

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,eb36645c008009a2,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-11-03 10:36:59 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!gec-epl.co.UK!scone
From: scone@gec-epl.co.UK (Richard_Bibb)
Newsgroups: gnu.gcc.help
Subject: gcc automatic generation of makefile dependencies
Date: 3 Nov 1993 13:02:19 -0500
Organization: GNUs Not Usenet
Lines: 33
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9311031748.AA24966@cuthbert.sdd>