Makefile tutorial

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.
Post Reply
Caleb1994
Member
Member
Posts: 83
Joined: Sun Feb 13, 2011 4:55 pm

Makefile tutorial

Post by Caleb1994 »

Hey, just a suggestion (I think this is the right place...).

on the "todolist" target, it also display that line of the Makefile (since, obviously, all the keywords are listed, and ALLFILES includes AUXFILES which includes the Makefile itself :P). I got around this by just changing $(ALLFILES) to $(ALLFILES:Makefile=) which just removed the Makefile from that check.

People should be able to figure it out, but at the same time, it should also be fixed.

Other then that, loved the tutorial. I had used the Autotools side of make a lot, but never dove into actually writing a manual Makefile, so this helped a lot (aside from OSDev, this is just a great Makefile tutorial. lol)
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Makefile tutorial

Post by Solar »

Nice catch! I actually never bothered about the self-referring match in the Makefile, at least not to the point of trying to do anything about it. This is a nice solution!
Every good solution is obvious once you've found it.
Caleb1994
Member
Member
Posts: 83
Joined: Sun Feb 13, 2011 4:55 pm

Re: Makefile tutorial

Post by Caleb1994 »

Solar wrote:Nice catch! I actually never bothered about the self-referring match in the Makefile, at least not to the point of trying to do anything about it. This is a nice solution!
Thanks, I really liked the clean look of the output from the rest of the Makefile, so that bugged me. Hope I could be of some help to some other output OCD person out there :)
Post Reply