diff options
author | John Ankarstrom <john@ankarstrom.se> | 2021-07-03 14:00:29 +0200 |
---|---|---|
committer | John Ankarstrom <john@ankarstrom.se> | 2021-07-03 14:00:29 +0200 |
commit | 7dad3d5d174da22b63666d3108df336bf0854b73 (patch) | |
tree | 18225f0928c780fab2b59f0ce6cec6d1a5e1daa9 | |
parent | 82852ce2fafe3fe3c2b8fbee77b2f10cc0067c2e (diff) | |
download | when-7dad3d5d174da22b63666d3108df336bf0854b73.tar.gz |
Makefile: Use BINDIR, MANDIR variables instead of PREFIX
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |