diff options
author | Thomas Voss <mail@thomasvoss.com> | 2022-09-23 20:56:03 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2022-09-23 20:56:03 +0200 |
commit | 40e26d2bc72213c3fc0633038b7da58da10b4707 (patch) | |
tree | 0c47ccf58ce10166e4ebe68664ddaeb9c70b754e | |
parent | 68f7fb971322ffb03c8b5deba60ee25e31c77bfd (diff) |
Add a target variable
-rw-r--r-- | Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 |