[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to get hostname in a Makefile?
From: |
Peng Yu |
Subject: |
How to get hostname in a Makefile? |
Date: |
Wed, 31 Mar 2010 11:06:40 -0600 |
Hi,
I have the following makefile. The first echo statement doesn't print
anything (just an empty line), the second echo print the path
correctly. Could you let me know what is the correct way to get
$HOSTNAME in a makefile?
$ cat Makefile
.PHONY: all
TMP:=$(HOSTNAME)
TMP1:=$(PWD)
all:
echo $(TMP)
echo $(TMP1)
Regards,
Peng
- How to get hostname in a Makefile?,
Peng Yu <=