From bf9c0a3001fbd7b001b73028c82f2a7b495065a4 Mon Sep 17 00:00:00 2001 From: Guido Draheim Date: Sat, 15 Sep 2018 00:21:48 +0200 Subject: [PATCH] make htmpages --- Makefile | 10 +++++----- docs/CMakeLists.txt | 18 ++++++++++++++++-- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 86ee17b..20358e4 100644 --- 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 diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index fabb4e0..68511d1 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -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}) -- 2.40.0