Makefile snippets for if, ife and el and .DEFAULT_GOAL
This commit is contained in:
parent
05a681b8b5
commit
0a9c97439c
@ -25,7 +25,21 @@ snippet add
|
|||||||
snippet print
|
snippet print
|
||||||
print-%: ; @echo $*=$($*)
|
print-%: ; @echo $*=$($*)
|
||||||
# ifeq
|
# ifeq
|
||||||
snippet ifeq
|
snippet if
|
||||||
ifeq (${1:cond0}, ${2:cond1})
|
ifeq (${1:cond0}, ${2:cond1})
|
||||||
${0}
|
${0}
|
||||||
endif
|
endif
|
||||||
|
# ifeq ... else ... endif
|
||||||
|
snippet ife
|
||||||
|
ifeq (${1:cond0}, ${2:cond1})
|
||||||
|
${3}
|
||||||
|
else
|
||||||
|
${0}
|
||||||
|
endif
|
||||||
|
# else ...
|
||||||
|
snippet el
|
||||||
|
else
|
||||||
|
${0}
|
||||||
|
# .DEFAULT_GOAL := target
|
||||||
|
snippet default
|
||||||
|
.DEFAULT_GOAL := ${1}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user