documentation: updated man page

Using scdoc to make editing a bit more comfortable.
This commit is contained in:
Maarten van Gompel
2024-11-25 12:57:09 +01:00
parent 97efb1de74
commit c742b58f51
4 changed files with 117 additions and 77 deletions

View File

@ -21,9 +21,12 @@ HDRS = $(WAYLAND_HEADERS:.xml=-client-protocol.h)
WAYLAND_SRC = $(HDRS:.h=.c)
SOURCES = $(WVKBD_SOURCES) $(WAYLAND_SRC)
SCDOC=scdoc
DOCS = wvkbd.1
OBJECTS = $(SOURCES:.c=.o)
all: ${BIN}
all: ${BIN} ${DOCS}
config.h:
cp config.def.h config.h
@ -45,6 +48,9 @@ clean:
format:
clang-format -i $(WVKBD_SOURCES) $(WVKBD_HEADERS)
%: %.scd
$(SCDOC) < $< > $@
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f ${NAME}-${LAYOUT} ${DESTDIR}${PREFIX}/bin