SI
Size: a a a
SI
SI
$(.SHELLSTATUS)
тоже ничего не возвращает :(OR
OR
MG
SI
OR
MG
SI
OR
SI
м
some_recipe:
@if git diff-index --name-only HEAD | grep foo-bar; then \
@echo Stop; \
@fi
make -f test.mk some_recipe
/bin/sh: 3: Syntax error: end of file unexpected (expecting "fi")
test.mk:2: recipe for target 'some_recipe' failed
make: *** [some_recipe] Error 2
➜ ~ make --version
GNU Make 3.81
MG
git diff-index --name-only HEAD | grep foo-bar
, если конвейер выйдет с ненулевым кодом, то Make остановится.м
MG
MG
MG
!
перед командой, для инвертирования статуса.