whole-or-file.mk
来自「The library provides supports for run-ti」· MK 代码 · 共 18 行
MK
18 行
# Builds either:# - the whole target (default) # - One (or several) specified objects## GOAL - the goal given on command line (usually a .PHONY goal)# TARGET - output file with all qualifiers qualifiers (libfoo.a)# OBJS - list of all object filesifeq ($(findstring $(BINDIR),$(MAKECMDGOALS)),) # Default, full target (No object files specified) $(GOAL): $(TARGET) # This target is used when compiling the whole targetelse # Single/multiple file (object files specified) OBJS:= $(filter $(OBJS), $(MAKECMDGOALS)) $(GOAL): clean $(OBJS) # This target is used when compiling a single file endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?