aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarstrom <john@ankarstrom.se>2021-07-03 14:00:29 +0200
committerJohn Ankarstrom <john@ankarstrom.se>2021-07-03 14:00:29 +0200
commit7dad3d5d174da22b63666d3108df336bf0854b73 (patch)
tree18225f0928c780fab2b59f0ce6cec6d1a5e1daa9
parent82852ce2fafe3fe3c2b8fbee77b2f10cc0067c2e (diff)
downloadwhen-7dad3d5d174da22b63666d3108df336bf0854b73.tar.gz
Makefile: Use BINDIR, MANDIR variables instead of PREFIX
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index d8a5ffe..752c0a7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,13 @@
-PREFIX = /usr/local
-
+BINDIR = /usr/local/bin
+MANDIR = /usr/local/man
CFLAGS = -Wall -Wno-missing-braces -Wextra -Wpedantic -O2
all: watch
install: watch
- cp watch $(PREFIX)/bin/watch
- cp watch.1 $(PREFIX)/man/man1/watch.1
+ cp watch $(BINDIR)/watch
+ cp watch.1 $(MANDIR)/man1/watch.1
uninstall:
- rm $(PREFIX)/bin/watch
- rm $(PREFIX)/man/man1/watch.1
+ rm $(BINDIR)/watch
+ rm $(MANDIR)/man1/watch.1