il barbatrucco della shell in makefile
This commit is contained in:
parent
d1a2934497
commit
892f9e2f61
1 changed files with 16 additions and 0 deletions
16
make/01-shmakeintrospection/makefile
Executable file
16
make/01-shmakeintrospection/makefile
Executable 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
|
Loading…
Reference in a new issue