]> granicus.if.org Git - zziplib/commitdiff
make htmpages
authorGuido Draheim <guidod@gmx.de>
Fri, 14 Sep 2018 22:21:48 +0000 (00:21 +0200)
committerGuido Draheim <guidod@gmx.de>
Fri, 14 Sep 2018 22:21:48 +0000 (00:21 +0200)
Makefile
docs/CMakeLists.txt

index 86ee17b1341d23fcc941fe1cc745e3f3d9a0330f..20358e47c39ac3ce3cd00975cd92113c7e38736b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,13 +10,13 @@ all depend:
 clean edit_cache rebuild_cache help:
        test ! -d build || cd build && $(MAKE) $@
 install install/strip install/local list_install_components:
-       cd build && $(MAKE) $@
+       cd build && $(MAKE) $@ VERBOSE=1
 libzzip libzzipmmapped libzzipfseeko libzzipwrap zzipwrap:
-       cd build && $(MAKE) $@
+       cd build && $(MAKE) $@ VERBOSE=1
 zzip unzzip unzzip-mix unzzip-mem unzzip-big zzdir zzcat zzcatsdl zzxorcat zzxordir zzobfuscated:
-       cd build && $(MAKE) $@
-sfx zzipself zzipsetstub doc:
-       cd build && $(MAKE) $@
+       cd build && $(MAKE) $@ VERBOSE=1
+sfx zzipself zzipsetstub doc htm man htmpages htmpages:
+       cd build && $(MAKE) $@ VERBOSE=1
 
 builds: config build local
 static: conf build local
index fabb4e0d35329f9f2aaf321ffd82da004d66c114..68511d1039a630aec294134d1cbe5ddaa6eee690 100644 (file)
@@ -71,11 +71,25 @@ add_custom_command(OUTPUT manpages.tar
     COMMAND python ${srcdir}/dbk2man.py -o man3 man zzipfseeko.xml
     COMMAND bash -c "test -d man3/man3 && mv man3 man3_; test -d man3_/man3 && mv man3_/man3 .; rm -rf man3_"
     COMMAND bash -c "chmod 664 man3/*.3"
-    COMMAND tar cf manpages.tar man3
+    COMMAND bash -c "tar cf manpages.tar man3"
+    DEPENDS zziplib.xml zzipmmapped.xml zzipfseeko.xml
+    VERBATIM)
+add_custom_command(OUTPUT htmpages.tar
+    COMMAND rm -rf html
+    COMMAND mkdir html
+    COMMAND python ${srcdir}/dbk2man.py -o html html zziplib.xml
+    COMMAND python ${srcdir}/dbk2man.py -o html html zzipmmapped.xml
+    COMMAND python ${srcdir}/dbk2man.py -o html html zzipfseeko.xml
+    COMMAND python ${srcdir}/dir2index.py -o html html
+    COMMAND bash -c "tar cf htmpages.tar html/*.*"
     DEPENDS zziplib.xml zzipmmapped.xml zzipfseeko.xml
     VERBATIM)
 
-add_custom_target(doc ALL DEPENDS manpages.tar)
+add_custom_target(man DEPENDS manpages)
+add_custom_target(htm DEPENDS htmpages)
+add_custom_target(manpages DEPENDS manpages.tar)
+add_custom_target(htmpages DEPENDS htmpages.tar)
+add_custom_target(doc ALL DEPENDS manpages)
 
 # install ########################################################
 set(mandir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_MANDIR})