subsystem:
cd subdir && $(MAKE)
Keep looking Donot settle
分类: 嵌入式
2015-06-15 11:16:50
引用subsystem:
cd subdir && $(MAKE)
引用subsystem:
$(MAKE) -C subdir
引用make -f $(CURDIR)/subdir/Makefile
引用$ ll
total 12
-rw-rw-r--. 1 beyes beyes 73 May 17 00:15 hello.c
-rw-rw-r--. 1 beyes beyes 169 May 17 13:47 Makefile
drwxrwxr-x. 2 beyes beyes 4096 May 17 13:27 submake
$ ll submake/
total 4
-rw-rw-r--. 1 beyes beyes 47 May 17 13:27 Makefile
引用[beyes@SLinux temp8]$ make
gcc -c hello.c -o hello.o
cd /home/beyes/Makefile/temp8/submake && make
make[1]: Entering directory `/home/beyes/Makefile/temp8/submake'
wRr
make[1]: Leaving directory `/home/beyes/Makefile/temp8/submake'
gcc -o hello hello.o