home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / programm / 4396 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.0 KB  |  34 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!timbuk.cray.com!walter.cray.com!paws
  3. From: paws@spam.cray.com (Daniel Baehr)
  4. Subject: Help with if structures in makefile
  5. Message-ID: <1992Aug21.140244.12486@walter.cray.com>
  6. Sender: paws@spam (Daniel Baehr)
  7. Organization: Cray Research, Inc.
  8. Date: 21 Aug 92 14:02:44 CDT
  9. Lines: 23
  10.  
  11.  
  12.   As the subject says I need help with if structures in a makefile.
  13.  Below is the snippet if code I am wondering about.
  14.  
  15. if [ \$host == "HERE" ]; then \
  16.    VARIABLE=pathname ; \
  17. else VARIABLE=differentpathname ; \ 
  18. fi
  19.  
  20.    When I type make I get a Badley formed macro assignment against the 
  21.  second line.  What am I doing wrong?  This is running on a SUN 4.1.1.
  22.  
  23.  
  24.  
  25.     Thanks..
  26.  
  27.     Daniel Baehr
  28.  
  29. --
  30. +------------------------------------------------------------------------+
  31. | Daniel Baehr Work: paws@spam.cray.com  Home: daniel_baehr@bearsden.UUCP|
  32. | These OPINIONS are mine and mine alone.                                |
  33. +------------------------------------------------------------------------+
  34.