doc/automake.mk (html-local): Add dependency on the directory doc/pspp.html
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 13 Dec 2020 09:34:21 +0000 (10:34 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 13 Dec 2020 09:34:21 +0000 (10:34 +0100)
Fixes bug #59577 (hopefully).

doc/automake.mk

index 3571cc4960b116f22a75dca1fc975b618036ae74..0871be428973e8ac0849961995854496c6bcb8a5 100644 (file)
@@ -227,7 +227,8 @@ $(FIGURE_TXTS) $(FIGURE_HTMLS): $(pspp_output)
 AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) --css-ref=pspp-manual.css
 # Adjust the path for screenshot images.
 # But make sure these operations are idempotent.
-html-local:
+html-local: doc/pspp.html
+       test -d doc/pspp.html
        for h in doc/pspp.html/*.html; do \
                if grep -Fq '<img src="screenshots/' $$h; then continue; fi ; \
                $(SED) -i -e 's|<img src="\([^"]*\)"|<img src="screenshots/\1"|' $$h; \