What is the difference between “make” and “make all”?
来源:互联网 发布:mac系统钥匙串密码 编辑:程序博客网 时间:2024/06/11 00:37
I have a Makefile with the following structure (working example).
.PHONY: image flashcard put-filesput-files: @echo "=== put-files"image: @echo "=== image"flashcard: @echo "=== flashcard"all: put-files image flashcard @echo "Done"
I expect that a simple make
would build all three targets, but this is not so:
% make=== put-files
But if I explicitly specify the target, the dependencies are built as well:
% make all=== put-files=== image=== flashcardDone
What am I doing wrong?
makefilegnu-make
start a bounty
1 Answer
activeoldest votes
up vote4 down vote accepted
A simple make
will build the first target in the list, which is put-files
.
make all
will build the target all
. If you want all
to be the default, then move it to the top of the list.
To understand what the .PHONY
does, see http://www.gnu.org/s/hello/manual/make/Phony-Targets.html
0 0
- What is the difference between “make” and “make all”?
- What is the difference between test, [ and [[ ?
- what is the difference between the setTimeout and setInterval
- What is the difference between DHTML and the DOM?
- What is the difference between the mouseover and mouseenter events?
- What is the difference between AWT and SWT?
- What is the difference between User Control and Custom Control?
- What is the difference between an EXE and a DLL?
- What is the difference between XML and C or C ?
- What is the difference between SMOD and CMOD?
- what is the difference between little-endian and big-endian.
- What is the difference between procedural and nonprocedural language?
- What is the difference between a thread and a process?
- What is the difference between objectForKey and valueForKey?
- What is the difference between Microsoft TMG and UAG ?
- What is the Difference Between http and https?
- what is the difference between ELF files and bin files
- what is the difference between MirrorView, SanCopy, SanpSure and SnapView
- Eclipse 快捷键
- [LeetCode]66.Plus One
- linux下vi编辑器实现简单的粘贴复制剪切功能
- SPRING-MVC访问静态文件,如jpg,js,css
- Oracle中INSTR的用法
- What is the difference between “make” and “make all”?
- VirtualBox安装CentOs迷你版(minimal)并通过ssh客户端(putty)连接
- ReadWriteLock用法
- sqlite3 使用记录
- 链表操作
- 2014-1-22
- Android之MediaRecorder进行录影
- Ofbiz 入门教程
- 【LeetCode】Remove Duplicates from Sorted Array I && II