aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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