From ed21989821175af68bc9bfa558b677991e04802d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 21 May 2022 20:37:17 +0200 Subject: Makefile: Add `install` target --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index ba06494..b01ee3e 100644 --- a/Makefile +++ b/Makefile @@ -16,11 +16,17 @@ # along with Wajir. If not, see . +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 -- cgit v1.2.3