From 06c3e3879c73510fc47de68d12d2861ff75cc24b Mon Sep 17 00:00:00 2001 From: Allison Karlitskaya Date: Mon, 19 Apr 2021 10:49:52 +0200 Subject: [PATCH] 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. --- doc/guide/Makefile-guide.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/guide/Makefile-guide.am b/doc/guide/Makefile-guide.am index 6fd7ed247..920f382e2 100644 --- a/doc/guide/Makefile-guide.am +++ b/doc/guide/Makefile-guide.am @@ -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/ && \