Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Mon, 21 Jun 2004 11:39:43 -0400 (EDT) From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> Reply-To: cygwin AT cygwin DOT com To: Vasoczki Ferenc <ferenc_vasoczki AT gallup DOT hu> cc: cygwin AT cygwin DOT com Subject: RE: make doesn't inherit shell vars? (Was RE: wmmake problem) In-Reply-To: <62DD8FD91F1F6F48A9F52E500A0348615CB783@gate.gallup.hu> Message-ID: <Pine.GSO.4.58.0406211136040.3356@slinky.cs.nyu.edu> References: <62DD8FD91F1F6F48A9F52E500A034861128ADD AT gate DOT gallup DOT hu,Pine DOT GSO DOT 4 DOT 58 DOT 0406211108390 DOT 3356 AT slinky DOT cs DOT nyu DOT edu,62DD8FD91F1F6F48A9F52E500A0348615CB783 AT gate DOT gallup DOT hu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 Please make sure your mailer respects the Reply-To: header -- I set it for a reason. Oh, and once again, <http://cygwin.com/acronyms/#PCYMTNQREAIYR>. Igor On Mon, 21 Jun 2004, Vasoczki Ferenc wrote: > Now i should go, but tomorrow i will check... > Sorry if it is offtopic. > I used linux before, i just thought, this is a cygwin problem... > > Thank you again... > > Vaso > > -----Original Message----- > From: Igor Pechtchanski > Sent: Monday, June 21, 2004 5:28 PM > To: Vasoczki Ferenc > Cc: cygwin<at>cygwin<dot>com > Subject: Re: make doesn't inherit shell vars? (Was RE: wmmake problem) > > > On Mon, 21 Jun 2004, Vasoczki Ferenc wrote: > > > 1st of all, sorry. > > But i think, a makefile syntax, and the cygwin environment variable is > > not an SGT related problem > > Forget the SGT. > > > > I made a variable in .bashrc : > > mydir=/var/www > > export mydir > > > > and in a makefile there is a reference: > > include $(mydir)/myproject/something/a.mak > > > > echo $mydir > > $ /var/www/ > > > > and when i am compile, the system sad, cannot find > > /myproject/something/a.mak because the system don't know the value of > > the $mydir environment variable. > > > > so ? > > > > Vaso > > > > -----Original Message----- > > [snip] > > Again, <http://cygwin.com/acronyms/#PCYMTNQREAIYR>. > > Secondly, this is still not Cygwin-related -- it's a general bash > situation. Please read the bash man page, especially the INVOCATION > section ('PAGER="less -isRrp ^INVOCATION" man bash'). Hint: note the > difference between .bashrc and .bash_profile. > > FYI, the following works: > > $ pwd > /tmp/maketest > $ cat blah.mak > include $(mydir)/maketest/bar.mk > $ cat bar.mk > all:; echo "Got target" > $ export mydir=/tmp > $ make -f blah.mak > echo "Got target" > Got target > $ > Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/