Tag: makefile

在makefile嵌shell命令的问题

Posted by – October 7, 2010

在makefile嵌shell命令的问题: (how to using shell commands within makefile?):
[bash]
cleanc:
ifeq ($(APP),)
for dir in $(subdir-y) ; do \
{ \
if [ -d $$dir ]; then \
$(MAKE) -C $$dir cleanc; \
else \
echo "$$dir is not exist"<strong>; \</strong>
fi <strong>\</strong>
} \
done
else
make -C $(APP) cleanc
endif
[/bash]