summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c22556a..f114488 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,8 @@ CFLAGS = -std=c99 -Os -Wall -Wextra
# string-table pointers in at link time instead of emitting ~57 KB of runtime
# relocations -- a ~6% smaller binary for free.
LDFLAGS = -s -no-pie
-PREFIX = /usr/local
+PREFIX = /usr/local
+MANPREFIX = $(PREFIX)/share/man
# The form to build is read from config.h so there is one source of truth.
FORM := $(shell grep -Eq '^[[:space:]]*\#[[:space:]]*define[[:space:]]+FORM_EF' config.h 2>/dev/null && echo ef || echo of)
@@ -53,9 +54,11 @@ size: clectio
install: clectio
install -Dm755 clectio $(DESTDIR)$(PREFIX)/bin/clectio
+ install -Dm644 clectio.1 $(DESTDIR)$(MANPREFIX)/man1/clectio.1
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/clectio
+ rm -f $(DESTDIR)$(MANPREFIX)/man1/clectio.1
clean:
rm -f clectio mktext bin2h text.lz.h gen/verses_of.keys gen/verses_ef.keys