aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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