aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
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