Generate PDF documentation from man pages for windows releases.
[xonotic/gmqcc.git] / distro / win32 / Makefile
index 3a4ed2480b67cea82e5762c710cc10077d586197..99ae52e6a81c7814b1b0b3f6d610bb98e3925b2c 100644 (file)
@@ -8,6 +8,11 @@ BINDIR  := gmqcc-$(MAJOR).$(MINOR).$(PATCH)
 base:
        $(MAKE) CC=i486-mingw32-gcc UNAME=MINGW32 -C $(BASEDIR) clean
        $(MAKE) CC=i486-mingw32-gcc UNAME=MINGW32 -C $(BASEDIR) DESTDIR=distro/win32/$(BINDIR) PREFIX=/ install
+       @mkdir -p $(BINDIR)/doc
+       @groff -mandoc $(BINDIR)/man1/gmqpak.1 | ps2pdf - $(BINDIR)/doc/gmqpak.pdf
+       @groff -mandoc $(BINDIR)/man1/qcvm.1 | ps2pdf - $(BINDIR)/doc/qcvm.pdf
+       @groff -mandoc $(BINDIR)/man1/gmqcc.1 | ps2pdf - $(BINDIR)/doc/gmqcc.pdf
+       @rm -rf $(BINDIR)/man1/
        @zip -r $(BINDIR)-win32.zip $(BINDIR)
        @rm -rf $(BINDIR)
 clean: