Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51064
| From | Dave Angel <davea@davea.name> |
|---|---|
| Subject | Re: How to read a make file in python and access its elements |
| Date | 2013-07-22 20:39 -0400 |
| References | <beec5587-f154-47ed-b5f9-d548428d4da5@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4991.1374539989.3114.python-list@python.org> (permalink) |
On 07/22/2013 03:09 PM, san wrote: > How to read/load the cmake file in python and access its elements. > I have a scenario, where i need to load the make file and access its elements. > I have tried reading the make file as text file and parsing it,but its not the ideal solution > Please let me know how to load the .mk file and access its elements in python. > First, just what do you mean by "make file"? You refer to cmake, make, and .mk in three places in your message. How about a link to the actual tool you're interested in? And a brief list of the other tools you're using it with. Is this it? http://www.cmake.org/ Once we're talking about the same tool, then the question is what "elements" are you interested in? If your cmake is anything like the traditional make program, the format is deceptively simple, and enormously complex in usage. But I suspect that your cmake has very little to do with Unix make tools. The cmake that I gave the link for uses a CMakeLists file, which looks nothing like a makefile. -- DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to read a make file in python and access its elements san <santosh.ssit@gmail.com> - 2013-07-22 12:09 -0700 Re: How to read a make file in python and access its elements Ben Finney <ben+python@benfinney.id.au> - 2013-07-23 09:14 +1000 Re: How to read a make file in python and access its elements Dave Angel <davea@davea.name> - 2013-07-22 20:39 -0400 Re: How to read a make file in python and access its elements alex23 <wuwei23@gmail.com> - 2013-07-23 10:48 +1000
csiph-web