aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-03-02 23:56:08 +0000
committerDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-03-04 01:24:15 +0000
commit7c0f371cfb3ad3d876325dd0e8e2f9e74e8b5e22 (patch)
treeb9ef69906ea0c5c49664687febfedbc2b62382a0
parentf17e3be93d425f5554a806c0e847c34504a68873 (diff)
downloadboca-7c0f371cfb3ad3d876325dd0e8e2f9e74e8b5e22.tar.gz
boca-7c0f371cfb3ad3d876325dd0e8e2f9e74e8b5e22.zip
Use automatic variables to compile tools/safeexec
Replace redundant recipe for tools/safeexec rule with automatic variables: * `$^` expands to the names of all rule's prerequistes * `$@` expands to the name of the rule's target Further information is available in https://www.gnu.org/software/make/manual/make.html.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dcb2d35..0674ac2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
tools/safeexec: tools/safeexec.c
- gcc -g tools/safeexec.c -o tools/safeexec
+ gcc -g $^ -o $@
tools/boca-submit-run-root-wrapper: tools/boca-submit-run-root-wrapper.c
gcc -g $^ -o $@