diff --git a/Makefile b/Makefile index c0d70f8..66fa78e 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ include config.mk NAME=wvkbd BIN=${NAME}-${LAYOUT} SRC=. +MAN1 = ${NAME}.1 PKGS = wayland-client xkbcommon pangocairo @@ -47,3 +48,5 @@ install: all mkdir -p ${DESTDIR}${PREFIX}/bin cp -f ${NAME}-${LAYOUT} ${DESTDIR}${PREFIX}/bin chmod 755 ${DESTDIR}${PREFIX}/bin/${NAME}-${LAYOUT} + sed "s/VERSION/${VERSION}/g" < ${MAN1} > ${DESTDIR}${MANPREFIX}/man1/${MAN1} + chmod 644 ${DESTDIR}${MANPREFIX}/man1/${MAN1} diff --git a/config.mk b/config.mk index e306d5b..6c30b86 100644 --- a/config.mk +++ b/config.mk @@ -1,3 +1,5 @@ VERSION = 0.8 CFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=700 +PREFIX = /usr/local +MANPREFIX = ${PREFIX}/share/man LAYOUT = mobintl diff --git a/wvkbd.1 b/wvkbd.1 index fe400cc..d38c3b4 100644 --- a/wvkbd.1 +++ b/wvkbd.1 @@ -51,7 +51,7 @@ set font (e.g: DejaVu Sans 20) .RE \fB--hidden\fR .RS 4 -start hidden (send SIGUSR2 to show) +start hidden (send SIGUSR2 to show, SIGUSR1 to hide, SIGRTMIN to toggle) .P .RE \fB-v\fR, \fB--version\fR