home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 11037 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.3 KB  |  46 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!noc.near.net!viewlog.viewlogic.com!greg
  3. From: greg@mobius.viewlogic.com (Gregory Larkin)
  4. Subject: Question about make and environment variables
  5. Message-ID: <1992Sep14.152152.22332@viewlogic.com>
  6. Originator: greg@mobius
  7. Sender: greg@mobius (Gregory Larkin)
  8. Nntp-Posting-Host: mobius
  9. Organization: Viewlogic Systems, Inc.
  10. Date: Mon, 14 Sep 1992 15:21:52 GMT
  11. Lines: 33
  12.  
  13.  
  14.  
  15. Hi there,
  16.  
  17. I am using SunOS 4.1.1 on a Sparc-2 and I have a question
  18. about make and setting environment variables.
  19.  
  20. Is there any way to have a target like this:
  21.  
  22. setarch:
  23.     setenv ABC def
  24.  
  25. and have ABC be set in the parent shell?  
  26.  
  27. Also, make seems to invoke /bin/sh as the default shell 
  28. to invoke this rule, so it fails.  My SHELL (and shell) 
  29. variables are set to /usr/local/bin/tcsh, but it seems 
  30. to ignore them.  Anyone know why?
  31.  
  32. If I type:  "make SHELL=/usr/local/bin/tcsh setarch", it
  33. works fine.
  34.  
  35. Also, is it possible to set environment variables in
  36. arbitrary shells?  Can they be referenced by the tty
  37. that they are connected to (probably a long shot!)
  38.  
  39. Thanks for any info!
  40.  
  41.  
  42. -- 
  43.               Greg Larkin, Software Engineer, Waveform Analysis
  44.                  Viewlogic Systems, Inc.  Marlboro, MA 01752
  45.                             greg@Viewlogic.COM
  46.