[Etherboot-developers] Makefile suggestion
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Marty C. <md...@et...> - 2002-12-26 18:39:40
|
Hello All,
I was debugging some Makefile stuff ran into an interesting bug where
the Roms file was not getting rebuilt based on changes to genrules.pl.
My reading of the Makefile suggests that it should, but it wasn't.
I was thinking that in the "make clean" stanza of Makefile, we might
want to add Roms, since it is generated from NIC using genrules.pl.
So we would have:
clean:
$(RM) $(UTILS) bin/*.s bin/*.o bin/*.bin Roms
I think what might have happened is that I accidentally edited Roms
after editing genrules.pl (but before I did a "make"), so genrules.pl
was not run to regenerate Roms, which made the Makefile not work as
expected. Once I deleted Roms, it got regenerated. I'm also thinking
we might not want to distribute a pre-built Roms file with the
distribution, so that it gets made when it is needed. Frankly, since
Roms is Included in Makefile, I'm wondering whether "make" can sanely
check Roms before it is Included.
I suppose this would necessitate people having Perl, so that is a
consideration, but it is pretty common these days.
Food for thought. What do you think? I'm sure we have some Makefile
wizards out there, since the $rom--% rules got in there ;)
Marty
--
Try: http://rom-o-matic.net/ to make Etherboot images instantly.
Name: Marty Connor
US Mail: Entity Cyber, Inc.; P.O. Box 391827;
Cambridge, MA 02139; USA
Voice: (617) 491-6935; Fax: (617) 491-7046
Email: md...@et...
Web: http://www.etherboot.org/
|