Makefile - yszheda/wiki GitHub Wiki
wildcard
ifneq ("$(wildcard $(PATH_TO_FILE))","")
FILE_EXISTS = 1
else
FILE_EXISTS = 0
endif
- How do I check if file exists in Makefile so I can delete it?
- 在 makefile 判斷目錄是否存在
- Checking if a directory exists within makefile
override
- https://www.gnu.org/software/make/manual/make.html#Override-Directive
- Append to GNU make variables via command line
- Add compiler option without editing Makefile
- passing optional arguments to a makefile
.PHONY
- https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html
- What is the purpose of .PHONY in a Makefile?
- Passing Makefile arguments to a command, as they are typed in the command line.
$(error VAR is $(VAR))
$(warning VAR is $(VAR))
$(info VAR is $(VAR))
assembly
- Makefiles - ar: *.a: No such file or directory… but there is… it's right there
- How to make a Makefile for a program for assembly Language?
- Makefile for building ASM/C project
GNU Make Parallelization
- Is it possible to make -jN dynamic based on CPU load?
- How to determine the maximum number to pass to make -j option?
- How to speed up compilation time in linux
- How to use GNU make --max-load on a multicore Linux machine?
- How to determine a good value for --load-average using gnu Make?
- The Pitfalls and Benefits of GNU Make Parallelization