diff options
-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 |