[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.cdt] Re: how to build a project when Makefile is in subdirectory?
|
Here is a really simple example:
DIRS=sub-dir1 sub-dir2 sub-dir3
all::
@for i in ${DIRS}; \
do \
make -C $${i}; \
done
clean::
@for i in ${DIRS}; \
do \
make -C $${i} clean; \
done
HTH
--
Derek
Alejandro Aragón wrote:
Derek Morris wrote:
Either:
- change the make command in Eclipse to make -C subdirectory
- add a makefile in the project root that invokes make in the
subdirectory
I did it the first way and it works fine!
Do you have an example of a Makefile that calls other Makefiles in
subdirectories? I don't really understand how Makefiles work.
Thank you.