aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2022-05-21 20:37:17 +0200
committerTeddy Wing2022-05-21 20:37:17 +0200
commited21989821175af68bc9bfa558b677991e04802d (patch)
tree8094cb8f1caf463c1e36223a182aae3fa752494a
parent784c0f7bd5254d184cb3ccef70491ce277ce8250 (diff)
downloadwajir-ed21989821175af68bc9bfa558b677991e04802d.tar.bz2
Makefile: Add `install` target
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ba06494..b01ee3e 100644
--- a/Makefile
+++ b/Makefile
@@ -16,11 +16,17 @@
# along with Wajir. If not, see <https://www.gnu.org/licenses/>.
+PREFIX=/usr/local
+
LISP ?= sbcl
MAN_PAGE := doc/wajir.1
+.PHONY: all
+all: wajir $(MAN_PAGE)
+
+
.PHONY: build
build: wajir
@@ -36,3 +42,9 @@ doc: $(MAN_PAGE)
$(MAN_PAGE): doc/wajir.1.txt
a2x --no-xmllint --format manpage $<
+
+
+.PHONY: install
+install:
+ install -m 755 wajir $(PREFIX)/bin
+ install -m 755 $(MAN_PAGE) $(PREFIX)/share/man/man1