home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!noc.near.net!viewlog.viewlogic.com!greg
- From: greg@mobius.viewlogic.com (Gregory Larkin)
- Subject: Question about make and environment variables
- Message-ID: <1992Sep14.152152.22332@viewlogic.com>
- Originator: greg@mobius
- Sender: greg@mobius (Gregory Larkin)
- Nntp-Posting-Host: mobius
- Organization: Viewlogic Systems, Inc.
- Date: Mon, 14 Sep 1992 15:21:52 GMT
- Lines: 33
-
-
-
- Hi there,
-
- I am using SunOS 4.1.1 on a Sparc-2 and I have a question
- about make and setting environment variables.
-
- Is there any way to have a target like this:
-
- setarch:
- setenv ABC def
-
- and have ABC be set in the parent shell?
-
- Also, make seems to invoke /bin/sh as the default shell
- to invoke this rule, so it fails. My SHELL (and shell)
- variables are set to /usr/local/bin/tcsh, but it seems
- to ignore them. Anyone know why?
-
- If I type: "make SHELL=/usr/local/bin/tcsh setarch", it
- works fine.
-
- Also, is it possible to set environment variables in
- arbitrary shells? Can they be referenced by the tty
- that they are connected to (probably a long shot!)
-
- Thanks for any info!
-
-
- --
- Greg Larkin, Software Engineer, Waveform Analysis
- Viewlogic Systems, Inc. Marlboro, MA 01752
- greg@Viewlogic.COM
-