Hi,
I'm having problems with compiling recursive Makefiles in my directory structure:
My folder layout is:
top/
|- one/
|- one.c (With main function)
|- zero.c
|- two/
|- two.c
in my
top folder the make file looks like:
Code:
MAKE_DIRECTORIES = one two
.PHONY: all
all: $(MAKE_DIRECTORIES)
.PHONY: $(MAKE_DIRECTORIES)
$(MAKE_DIRECTORIES):
@echo $@
$(MAKE) --directory=$@
in my
one and
two folder I have the following Makefile:
Code:
.PHONE: all
all:
@echo $@
$(CC) $(CFLAGS) *.c
But when I compile it from top folder: make
I get following output:
Which states that directory statement by echo in main Makefile is ok but the files are not compiled in
one and
two. Does anyone know why?
Thanks,
Indy