aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorBlake Lee <[email protected]>2022-07-18 18:56:46 -0400
committerBlake Lee <[email protected]>2022-07-18 18:56:46 -0400
commita312f8e0ac683e1bd61d499f267845f8510b9881 (patch)
tree7c3e2862e23fa4ffd6dfb35ce689d141101d933f /Makefile
parent88506d428485e25b609d90cd46da16d5ccf4a317 (diff)
downloadHyprland-a312f8e0ac683e1bd61d499f267845f8510b9881.tar.gz
Hyprland-a312f8e0ac683e1bd61d499f267845f8510b9881.zip
replace `rst2man` with `pandoc`
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 23 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 48d5f8dd..9e251da2 100644
--- a/Makefile
+++ b/Makefile
@@ -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