summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-08-26 13:08:20 +0200
committerAki <please@ignore.pl>2024-08-26 13:09:46 +0200
commit911c7d42043aabb36ba509fe6325c247b1f7415c (patch)
tree2d7af61723ccf596cd80f36f7b91dc838716e65a /Makefile
parentf7d4ad2f7dd6bf64d13896d3409fde9b5437e374 (diff)
downloadheaders-master.zip
headers-master.tar.gz
headers-master.tar.bz2
Added manual pageHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 01478ad..ba3daaa 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,8 @@ BINDIR=$(PREFIX_EXEC)/bin
DATADIR=$(PREFIX)/share
LUA_LMOD=$(DATADIR)/lua/$(LUA_VERSION)
HEADERS_DB=$(DATADIR)/headers
+MANDIR=$(DATADIR)/man
+MAN1DIR=$(MANDIR)/man1
all: test
@@ -16,7 +18,9 @@ install:
install -m755 -DT headers.lua $(DESTDIR)$(BINDIR)/headers
install -m644 -Dt $(DESTDIR)$(LUA_LMOD)/headers headers/*.lua
install -m644 -Dt $(DESTDIR)$(HEADERS_DB) db/*.lua
+ install -m644 -DT headers.1.in $(DESTDIR)$(MAN1DIR)/headers.1
sed -i 's|db/|$(HEADERS_DB)/|' $(DESTDIR)$(LUA_LMOD)/headers/default_path.lua
+ sed -i 's|@HEADERS_DB@|$(HEADERS_DB)|' $(DESTDIR)$(MAN1DIR)/headers.1
uninstall:
rm -f $(DESTDIR)$(BINDIR)/headers