diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-08 21:28:56 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-08 21:28:56 +0200 |
commit | 96faef1269486961872edf43e7f5836bbbd339cb (patch) | |
tree | 98d0067b0d7b7249e8eab8cc9c792bcb096d97ca | |
parent | 7f34ce14a677e8b47a4953a61f32197332466359 (diff) | |
download | repl-96faef1269486961872edf43e7f5836bbbd339cb.tar.gz |
Update Makefile
-rw-r--r-- | Makefile | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -1,13 +1,18 @@ -PREFIX = /usr/local +BINDIR = /usr/local/bin +MANDIR = /usr/local/man -LDFLAGS = -lreadline -ltermcap +HEADERS = /usr/pkg/include +LIBS = /usr/pkg/lib + +CFLAGS := -I$(HEADERS) +LDFLAGS := -L$(LIBS) -Wl,-R$(LIBS) -lreadline -ltermcap repl: repl.c install: repl - cp repl ${PREFIX}/bin/repl - cp repl.1 ${PREFIX}/man/man1/repl.1 + install repl ${BINDIR}/repl + install -m 644 repl.1 ${MANDIR}/man1/repl.1 uninstall: - rm ${PREFIX}/bin/repl - rm ${PREFIX}/man/man1/repl.1 + rm ${BINDIR}/repl + rm ${MANDIR}/man1/repl.1 |