- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Make: infinitely recursive macro
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2004 07:24 AM
тАО12-01-2004 07:24 AM
Make: infinitely recursive macro
I am trying to do the following in a makefile
I want to know if the following is valid because it work on hpux 11.00 but not on hpux 11.11 or 11.22. I am getting the following error:
Make: infinitely recursive macro?. Stop.
PATH=/home/speedware:${PATH}
all: test
test:
Because I want to add directory to the Environment variable PATH in my makefile
How would I do that ? (if its possibable )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 12:12 AM
тАО12-02-2004 12:12 AM
Re: Make: infinitely recursive macro
This is not allowed. This fails as PATH is not defined before substitution.
manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 01:02 AM
тАО12-02-2004 01:02 AM
Re: Make: infinitely recursive macro
Indeed
PATH is defined as itself. Thus making this an "infinitely recursive
macro", which cannot be expanded, so the make operation fails.
PATH=/home/speedware:$PATH is probably what you mean
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 01:41 AM
тАО12-02-2004 01:41 AM
Re: Make: infinitely recursive macro
Does anyone know if something was fix at one point in make ?
Also
PATH=/home/speedware:$PATH does not work since Make report $P as the variable and ATH as incorrect variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 10:07 AM
тАО12-02-2004 10:07 AM
Re: Make: infinitely recursive macro
PATH := /home/speedware:${PATH}
- Tags:
- gmake
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 10:10 AM
тАО12-02-2004 10:10 AM
Re: Make: infinitely recursive macro
That work in GNU make. The only problem is the fact that we are linking our product at installation time. I need a standard way of doing this so its going to work on all platform without depending on extra software.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 11:45 AM
тАО12-02-2004 11:45 AM
Re: Make: infinitely recursive macro
PATH=`/usr/local/speedpath.sh`
The speedpath.sh command would do something like this:
#!/usr/bin/sh
PATH=/home/speedpath:${PATH}
echo ${PATH}
exit 0