I'm writing a makefile to group together a few tools for an embedded project
I'm working on, one of these tools 'mburn' (the flasher) is causing me some
problems (although I'm not sure the problem lies in that project).

The overall layout of my project is as follows:

{projectdir}/makefile
{projectdir}/mburn/makefile

In the root makefile I have this target:

mburn:
>     $(MAKE) -s -C $(WORKROOT)/mburn
>

And the mburn makefile contains:

CFLAGS += -Wall -O2
>
> WRT54GMEMOBJS = wrt54g.o
>
> all: wrt54g
>
> wrt54g: $(WRT54GMEMOBJS)
>     gcc $(CFLAGS) -o $@ $(WRT54GMEMOBJS)
>
> clean:
>     rm -rf *.o wrt54g


If I run "make" in the mburn directory it tries to compile (it fails because
it's broken), but if I make sure there's no .o files and no binary, then run
"make mburn" in the top directory, it says "make: `mburn' is up to date.".
Which it clearly isn't if it doesn't have the binary file.

Any ideas?
-- 
Regards,
Peter Belm
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to