Makefile snippets for if, ife and el and .DEFAULT_GOAL

This commit is contained in:
Mathew Attlee 2016-05-12 15:02:37 +01:00
parent 05a681b8b5
commit 0a9c97439c

View File

@ -25,7 +25,21 @@ snippet add
snippet print
print-%: ; @echo $*=$($*)
# ifeq
snippet ifeq
snippet if
ifeq (${1:cond0}, ${2:cond1})
${0}
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}