LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-07-2024, 05:42 AM   #31
ajiten
Member
 
Registered: Jun 2023
Posts: 377

Original Poster
Rep: Reputation: 4

Quote:
Originally Posted by pan64 View Post
Implementation of what?
I sent you the source of make, you can browse the whole repo to find anything you are interested in.
So, all the functionality specified by the manual, as specified by @NevemTeve, is implemented in that source file of make?
Do you mean that the other files here, are not needed for the given purpose?
If yes, still it is an uphill task for me.
 
Old 02-07-2024, 05:58 AM   #32
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,874
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
When you have finished a basic C-programming course, you will be able to understand (parts of) the source of gmake. Of course the source is completely irrelevant, as you only only want to use gmake.
 
Old 02-07-2024, 06:18 AM   #33
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
Quote:
Originally Posted by ajiten View Post
So, all the functionality specified by the manual, as specified by @NevemTeve, is implemented in that source file of make?
Do you mean that the other files here, are not needed for the given purpose?
If yes, still it is an uphill task for me.
I still don't understand. Yes, those are the source files of make, if you want to know how it is implemented. But that is not required at all, if you want to use this tool. In that case you need to learn to use it, so read the manual and tutorials and examples, but do not read the source code.
Understanding the full source code is not not an easy task at all, not only for you, but for almost everybody.
 
1 members found this post helpful.
Old 02-07-2024, 07:25 PM   #34
ajiten
Member
 
Registered: Jun 2023
Posts: 377

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by pan64 View Post
I still don't understand. Yes, those are the source files of make, if you want to know how it is implemented. But that is not required at all, if you want to use this tool. In that case you need to learn to use it, so read the manual and tutorials and examples, but do not read the source code.
Understanding the full source code is not not an easy task at all, not only for you, but for almost everybody.
Thanks, but my interest is still there in getting the ability to be able to comprehend the source code, though as a side activity to understanding the use of makefile.
In fact, it is a very good exercise, for any student too.
Hence, request to please answer to my last post, i.e. if the given code file, is having all the functionality of makefiles, in it; or there are more files that implement any of the functionality of the makefiles.

Last edited by ajiten; 02-07-2024 at 07:29 PM.
 
Old 02-07-2024, 07:40 PM   #35
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
Quote:
Originally Posted by ajiten View Post
Thanks, but my interest is still there in getting the ability to be able to comprehend the source code, though as a side activity to understanding the use of makefile.
In fact, it is a very good exercise, for any student too.
Hence, request to please answer to my last post, i.e. if the given code file, is having all the functionality of makefiles, in it; or there are more files that implement any of the functionality of the makefiles.
Assuming your question is actually...

Quote:
my last post ...if the given code file, is having all the functionality of make, in it; or there are more files that implement any of the functionality of the make.
Have you not looked at the source tree for make? In particular follow the src/ directory. All of those files are obviously needed in some way to build the make application.
 
Old 02-07-2024, 07:47 PM   #36
ajiten
Member
 
Registered: Jun 2023
Posts: 377

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by astrogeek View Post
Assuming your question is actually...



Have you not looked at the source tree for make? In particular follow the src/ directory. All of those files are obviously needed in some way to build the make application.
I asked that question, as @pan64 stated earlier (in post #29), in an implicit manner, that all of the functionality of the makefile lies in the given code file. So, wanted to confirm that more clearly; as it seems that the rest of the files are important, but peripheral.
 
Old 02-07-2024, 07:58 PM   #37
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
Quote:
Originally Posted by ajiten View Post
...@pan64 stated earlier (in post #29), in an implicit manner, that all of the functionality of the makefile lies in the given code file...
No, pan64 implicitly said in that post:

Quote:
Originally Posted by pan64 View Post
Implementation of what?
I sent you the source of make, you can browse the whole repo to find anything you are interested in.

Last edited by astrogeek; 02-07-2024 at 08:03 PM. Reason: added relevant quote
 
2 members found this post helpful.
Old 02-08-2024, 02:25 AM   #38
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
all of the functionalities are there, but not in one file. All the files (especially inside src) are parts of the implementation.
Again, understanding the c code and using make are two different things.
 
2 members found this post helpful.
Old 02-11-2024, 06:41 AM   #39
ajiten
Member
 
Registered: Jun 2023
Posts: 377

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by pan64 View Post
all of the functionalities are there, but not in one file. All the files (especially inside src) are parts of the implementation.
Again, understanding the c code and using make are two different things.
Very difficult unless some pointer is made to a specific functionality, say the code fragment, as pointed in your post #2, that consisted of line #570 to #1359.
There seems no book for analyzing the code, for any particular functionality.
No website even.

Would soon start asking questions on the same code fragment.

Last edited by ajiten; 02-11-2024 at 06:44 AM.
 
Old 02-11-2024, 08:40 AM   #40
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
obviously there is no book. It is a special program, nobody wrote a book about it. If you are interested you need to read the official documentation which is the code itself, containing some comments about the functionality.
From the other hand good c practice and knowledge is required to understand it.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling space in lexer. ajiten Programming 5 11-28-2023 07:46 AM
Does lexer tool need be coded in the same language, as the source language? ajiten Programming 12 07-09-2023 11:18 PM
Where to post lexer file related issues. ajiten Programming 5 07-04-2023 02:06 AM
list all contains and subdirectories' contains babis Linux - Newbie 2 10-22-2004 09:40 PM
Command to find out which package contains which file ? javeree Slackware 6 07-10-2004 06:35 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration