guide: tweak font file copying rule

Add an explicit dependency on package-lock.json for copying our font
files from the node_modules directory.

This currently is a somewhat neutral change, but will be helpful in the
very near future, when depending on package-lock.json becomes our way to
populate the node_modules/ directory.
This commit is contained in:
Allison Karlitskaya 2021-04-19 10:49:52 +02:00 committed by Martin Pitt
parent d3f51710dd
commit 06c3e3879c
1 changed files with 3 additions and 2 deletions

View File

@ -94,8 +94,9 @@ MAINTAINERCLEANFILES += \
*.tmp \
$(NULL)
dist/guide/html/%.woff2: $(srcdir)/node_modules/@redhat/redhat-font/webfonts/RedHatText/%.woff2
$(COPY_RULE)
dist/guide/html/%.woff2: package-lock.json
@mkdir -p dist/guide/html
cp -L $(top_srcdir)/node_modules/@redhat/redhat-font/webfonts/RedHatText/$(notdir $@) $@
dist/guide/html/index.html: $(GUIDE_DOCBOOK) $(GUIDE_INCLUDES) $(man_MANS) $(GUIDE_STATIC) $(GUIDE_XSLT) $(GUIDE_FONTS)
$(AM_V_GEN) $(MKDIR_P) dist/guide/html/ && \