1828218 Members
2029 Online
109975 Solutions
New Discussion

ASCII Files not read

 
Nameesh
Frequent Advisor

ASCII Files not read

Hi,

I have added few entries in one of my Makefiles which the HP-UX differentiates as ASCII Text File.

When I try and include the Makefile in another Makefile, the contents are not read.

Please suggest the solution to this.

Regards,
Nameesh.
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: ASCII Files not read

Makefiles should be evaluated by file as ASCII text. That is normal. Check the syntax of your include statement.

It should be:
include myfile

The include MUST begin the line. Also check that permissions allow reading of the file.

Finally, make certain that all action statement line begin with a . Make is one of the very few UNIX utilities that require 's rather than simply whitespace.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: ASCII Files not read

You should also try make -nd to display debugging data. You should see:
Include file: "myfile"
as part of the debug stream.

Man make for details.
If it ain't broke, I can fix that.