aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-09-23 20:56:03 +0200
committerThomas Voss <mail@thomasvoss.com> 2022-09-23 20:56:03 +0200
commit40e26d2bc72213c3fc0633038b7da58da10b4707 (patch)
tree0c47ccf58ce10166e4ebe68664ddaeb9c70b754e /Makefile
parent68f7fb971322ffb03c8b5deba60ee25e31c77bfd (diff)
Add a target variable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index ad0a89c..6a6c38d 100644
--- a/Makefile
+++ b/Makefile
@@ -3,13 +3,15 @@
CFLAGS = -Ofast -march=native -mtune=native -pipe
PREFIX = /usr
-all: center
-center: center.c
+target = center
+
+all: ${target}
+${target}: ${target}.c
clean:
- rm -f center
+ rm -f ${target}
install:
mkdir -p ${PREFIX}/bin ${PREFIX}/share/man/man1
- cp center ${PREFIX}/bin
- cp center.1 ${PREFIX}/share/man/man1
+ cp ${target} ${PREFIX}/bin
+ cp ${target}.1 ${PREFIX}/share/man/man1