delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/07/23:49:19

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A08DB39.9675674C@pobox.com>
Date: Tue, 07 Nov 2000 23:48:57 -0500
From: "John A. Turner" <john DOT turner AT pobox DOT com>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Cygwin mailing list <cygwin AT sources DOT redhat DOT com>
Subject: make and $(shell uname -a)

environment:

o Win2kSP1
o cygwin 1.1.5(0.29/3/2) 2000-11-02
o MAKE_MODE unix

the following makefile:

------------------------------------------------
SHELL = /usr/bin/bash

foo = `/usr/bin/uname -a`
bar = $(shell /usr/bin/uname -a)

test:
	@echo "backticks work:"
	@echo $(foo)
	@echo "shell doesn't:"
	@echo $(bar)
------------------------------------------------

generates:

backticks work:
CYGWIN_NT-5.0 MIZU 1.1.5(0.29/3/2) 2000-11-02 02:01 i686 unknown
shell doesn't:
/usr/bin/bash: -c: line 1: syntax error near unexpected token `1.1.5(0'
/usr/bin/bash: -c: line 1: `echo CYGWIN_NT-5.0 MIZU 1.1.5(0.29/3/2) 2000-11-02 02:01 i686 unknown'
gmake: *** [test] Error 2

my question is, should $(shell) work?

thanks,

-John Turner

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019