📄 whole-or-file.mk
字号:
# 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -