diff options
author | Blake Lee <[email protected]> | 2022-07-18 18:56:46 -0400 |
---|---|---|
committer | Blake Lee <[email protected]> | 2022-07-18 18:56:46 -0400 |
commit | a312f8e0ac683e1bd61d499f267845f8510b9881 (patch) | |
tree | 7c3e2862e23fa4ffd6dfb35ce689d141101d933f /Makefile | |
parent | 88506d428485e25b609d90cd46da16d5ccf4a317 (diff) | |
download | Hyprland-a312f8e0ac683e1bd61d499f267845f8510b9881.tar.gz Hyprland-a312f8e0ac683e1bd61d499f267845f8510b9881.zip |
replace `rst2man` with `pandoc`
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 23 insertions, 2 deletions
@@ -9,6 +9,9 @@ PKGS = wlroots wayland-server xcb xkbcommon libinput CFLAGS += $(foreach p,$(PKGS),$(shell pkg-config --cflags $(p))) LDLIBS += $(foreach p,$(PKGS),$(shell pkg-config --libs $(p))) +VERSION=0.7.1beta +DATE=$(shell date "+%d %b %Y") + xdg-shell-protocol.h: $(WAYLAND_SCANNER) server-header \ $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@ @@ -124,8 +127,7 @@ install: cp ./assets/wall_4K.png ${PREFIX}/share/hyprland cp ./assets/wall_8K.png ${PREFIX}/share/hyprland - rst2man ./docs/hyprctl.1.rst | gzip -c > /usr/share/man/man1/hyprctl.1.gz - rst2man ./docs/Hyprland.1.rst | gzip -c > /usr/share/man/man1/Hyprland.1.gz + make man uninstall: rm -f ${PREFIX}/share/wayland-sessions/hyprland.desktop @@ -150,3 +152,22 @@ config: cd subprojects/wlroots && ninja -C build/ cd subprojects/wlroots && ninja -C build/ install + +man: + pandoc ./docs/Hyprland.1.rst \ + --standalone \ + --variable=header:"Hyprland User Manual" \ + --variable=footer:${VERSION} \ + --variable=date:"${DATE}" \ + --variable=section:1 \ + --from rst \ + --to man | gzip -c > /usr/share/man/man1/Hyprland.1.gz + + pandoc ./docs/hyprctl.1.rst \ + --standalone \ + --variable=header:"hyprctl User Manual" \ + --variable=footer:${VERSION} \ + --variable=date:"${DATE}" \ + --variable=section:1 \ + --from rst \ + --to man | gzip -c > /usr/share/man/man1/hyprctl.1.gz |