Page 1 of 1

Makefile tutorial

Posted: Sat Oct 08, 2011 8:16 pm
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)

Re: Makefile tutorial

Posted: Sun Oct 09, 2011 5:09 am
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!

Re: Makefile tutorial

Posted: Sun Oct 09, 2011 3:13 pm
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 :)