4918
5880
3万
GROAD
曲径通幽,安觅芳踪。
helloworld:file1.o file2.o FORCE gcc file1.o file2.o -o helloworld file1.o:file1.c file2.h gcc -c file1.c -o file1.o file2.o:file2.c file2.h gcc -c file2.c -o file2.o
helloworld:file1.o file2.o FORCE gcc file1.o file2.o -o helloworld file1.o:file1.c file2.h gcc -c file1.c -o file1.o file2.o:file2.c file2.h;gcc -c file2.c -o file2.o
clean: rm -rf *.o helloworld; echo "This is ok"
$ make clean rm -rf *.o helloworld; echo "This is ok" This is ok
# We need some generic definitions (do not try to remake the file). $(srctree)/scripts/Kbuild.include: ; include $(srctree)/scripts/Kbuild.include
srctree := $(CURDIR) include $(srctree)/scripts/Kbuild.include all: @echo $(VERSION)
[beyes@SLinux temp]$ make 1
srctree := $(CURDIR) $(srctree)/scripts/Kbuild.iniclude: include $(srctree)/scripts/Kbuild.include all: @echo $(VERSION)
[beyes@SLinux temp]$ make make: Nothing to be done for `/home/beyes/Makefile/temp/scripts/Kbuild.iniclude'.
srctree := $(CURDIR) $(srctree)/scripts/Kbuild.iniclude: ; include $(srctree)/scripts/Kbuild.include all: @echo $(VERSION)
[beyes@SLinux temp]$ make make: `/home/beyes/Makefile/temp/scripts/Kbuild.iniclude' is up to date.
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|曲径通幽 ( 琼ICP备11001422号-1|公安备案:46900502000207 )
GMT+8, 2025-6-17 19:44 , Processed in 0.075786 second(s), 22 queries .
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.