Fix building of manpages on bytecode architectures
authorStephane Glondu <steph@glondu.net>
Wed, 22 Dec 2021 07:15:13 +0000 (08:15 +0100)
committerStéphane Glondu <glondu@debian.org>
Wed, 22 Dec 2021 07:15:59 +0000 (08:15 +0100)
debian/rules

index 76533a82e1dcdedef8939c29dacbd89598bf5bf3..583c0d1b8fa3d3c2bf5404c88415fcfd209fff1f 100755 (executable)
@@ -140,15 +140,13 @@ ifeq ($(BUILDCACHE),)
        $(MAKE) world
        $(MAKE) bootstrap
        $(MAKE) -C tools dumpobj
-ifeq (,$(OCAML_OPT_ARCH))
-# As of 3.11.0, manpages are made only in `make opt.opt'
-       make -C ocamldoc manpages \
-         OCAMLDOC_RUN="../boot/ocamlrun -I ../otherlibs/unix -I ../otherlibs/str ./ocamldoc"
-else
+ifneq (,$(OCAML_OPT_ARCH))
        @echo "Building native compilers"
        $(MAKE) opt opt.opt
        touch opt-built-stamp
 endif
+       @echo "Building manpages"
+       $(MAKE) manpages
 else
        @echo "===> WARNING: $(BUILDCACHE) detected, compilation skipped! <==="
        rsync -a --exclude=debian --exclude=.git $(BUILDCACHE)/ .