From 40e26d2bc72213c3fc0633038b7da58da10b4707 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 23 Sep 2022 20:56:03 +0200 Subject: Add a target variable --- Makefile | 12 +++++++----- 1 file 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 -- cgit v1.2.3