- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Make: Must be a separator on rules line 4. Stop.
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
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
тАО07-20-2006 07:57 PM
тАО07-20-2006 07:57 PM
db34_pnr.log : foo
@echo "linux0"
ifeq (linux, linux)
@echo "linux1"
else
@echo "linux2"
end if
Running the makefile results in:
engserv3% touch foo; make db34_pnr.log
Make: Must be a separator on rules line 4. Stop.
I tried various forms of conditional statement and can't seem to get any of them to work on HP-UX. I believe the syntax is fine there are tabs before each of the echo statements.
Any help welcome.
Thanks.
Dave
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2006 11:33 PM
тАО07-20-2006 11:33 PM
Re: Make: Must be a separator on rules line 4. Stop.
I bet you look at this already:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1036381
Does your code stop with an endif or end if ?
Also, have you got a carrige return right at the end of the code. I am assuming you did not copy/paste the file as this may have upset the space/tab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 12:29 AM
тАО07-21-2006 12:29 AM
Re: Make: Must be a separator on rules line 4. Stop.
I tried with "endif" and "end
As for carriage returns, I created the file again from scratch (on HP-UX) just in case there had been a copy/paste some time in the past, but this didn't change anything.
Yes, I had taken a look at the post you suggested but it didn't obviously suggest the cause of my problem.
Any other thoughts?
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 12:41 AM
тАО07-21-2006 12:41 AM
Re: Make: Must be a separator on rules line 4. Stop.
I have never seen these conditionals working in standard make environments, if not running in a (whatever called) 'GNU-compatibility mode'.
ALWAYS necessary however is a
db34_pnr.log : foo
ifeq (linux, linux)
else
endif
The end of a conditional ifXXX-statement is 'endif'.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 04:48 AM
тАО07-21-2006 04:48 AM
SolutionEither install GNU make (gmake) or change
your makefile to do conditionals some
other way. Perhaps something like this:
default:
make `echo target_foo`
target_foo:
@echo this is foo
target_bar:
@echo this is bar
The stuff inside the `` can be any shell
command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 05:19 AM
тАО07-21-2006 05:19 AM
Re: Make: Must be a separator on rules line 4. Stop.
Thanks for the response, I got a conditional working based on your response & uname. It does what I need - thanks a lot.
Dave