Skip to content

Commit

Permalink
Makefile.am: avoid remaking the website to check it with htmlproofer [n…
Browse files Browse the repository at this point in the history
…etworkupstools#52]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed May 7, 2024
1 parent 02faf96 commit 654911f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,23 @@ all: \
# Regenerate site 2020-12-21 vs nut commit 46c7da76 and nut-website commit f1992f6f

if WITH_HTMLPROOFER
check-htmlproofer: all

# NOTE: We do not depend below on "all" or "OUTDIR" because that begins
# rebuilds of the site we have possibly just made. Instead, these rules
# just check whatever exists in the filesystem.

check-htmlproofer:
+@case "$(OUTDIR)" in \
"$(OUTDIR_BASE)"|"$(OUTDIR_BASE)/"*) $(MAKE) $(AM_MAKEFLAGS) check-htmlproofer-OUTDIR_BASE ;; \
*) $(MAKE) $(AM_MAKEFLAGS) check-htmlproofer-OUTDIR_BASE check-htmlproofer-OUTDIR ;; \
esac

check-htmlproofer-OUTDIR: $(OUTDIR)
check-htmlproofer-OUTDIR:
test -d $(OUTDIR)
$(HTMLPROOFER) $(OUTDIR)

check-htmlproofer-OUTDIR_BASE: $(OUTDIR_BASE)
check-htmlproofer-OUTDIR_BASE:
test -d $(OUTDIR_BASE)
$(HTMLPROOFER) $(OUTDIR_BASE)

else !WITH_HTMLPROOFER
Expand Down

0 comments on commit 654911f

Please sign in to comment.