il barbatrucco della shell in makefile

This commit is contained in:
Teodoro Santoni 2024-11-30 22:11:59 +01:00
parent d1a2934497
commit 892f9e2f61

View file

@ -0,0 +1,16 @@
#!/bin/bash
# https://www.humprog.org/~stephen/blog/2024/01/02/#make-shell
skipshellpart=; define () { true; }
define skipshellpart
abc() {
echo 'woooo!'
}
$@
return 0 2>/dev/null || exit 0
endef
.PHONY: all
all:
./makefile abc
echo meow