Re: [AD] new dependencies

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Sun, 24 Dec 2000 22:58:12 +0100 Henrik Stokseth
<hstokset@xxxxxxxxxx> writes:
> it would also be a good idea to let the makefiles 
> quit with an error if makefile.dep is non-existant. 
> i.e. remove the minus sign in front of include 
> $(OBJ_DIR)/makefile.dep.

Then could we add a target for creating 'makefile.dep' if it doesn't
exsist?
For example:
$(OBJDIR)/makefile.dep:
        gcc -MM $(wildcard *.c) > _depend.tmp
        sed -e "s/^\([a-zA-Z0-9_]*\.o:\)/\$$(OBJDIR)\/\1/" _depend.tmp >
$(OBJDIR)/makefile.dep
        rm _depend.tmp

Would that work?

Merry Christmas!
Stephen Kittelson
-- 
Member of the Standards By Programmers group.
To join, send an email to: stds_by_programmers-subscribe@xxxxxxxxxx

________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/