]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: docs/fonts: install font files
authorPavel Hrdina <phrdina@redhat.com>
Thu, 18 Jun 2020 00:27:48 +0000 (02:27 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:06 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
docs/Makefile.am
docs/fonts/meson.build [new file with mode: 0644]
docs/meson.build

index ae504358d26b4c7c112579166b7133501703adb3..7398628b6c0576daabfd67ce4cd0f4650f8387d7 100644 (file)
@@ -42,7 +42,7 @@ all: vpathhack
 # This hack enables us to view the web pages
 # from within the uninstalled build tree
 vpathhack:
-       @for dir in fonts js logos; \
+       @for dir in js logos; \
        do \
          test -e $$dir || ln -s $(srcdir)/$$dir $$dir ; \
        done
@@ -95,23 +95,6 @@ javascript = \
 javascriptdir = $(HTML_DIR)/js
 javascript_DATA = $(javascript)
 
-fonts = \
-  fonts/LICENSE.rst \
-  fonts/stylesheet.css \
-  fonts/overpass-bold-italic.woff \
-  fonts/overpass-bold.woff \
-  fonts/overpass-italic.woff \
-  fonts/overpass-light-italic.woff \
-  fonts/overpass-light.woff \
-  fonts/overpass-mono-bold.woff \
-  fonts/overpass-mono-light.woff \
-  fonts/overpass-mono-regular.woff \
-  fonts/overpass-mono-semibold.woff \
-  fonts/overpass-regular.woff
-
-fontsdir = $(HTML_DIR)/fonts
-fonts_DATA = $(fonts)
-
 logofiles = \
   logos/logo-base.svg \
   logos/logo-square.svg \
diff --git a/docs/fonts/meson.build b/docs/fonts/meson.build
new file mode 100644 (file)
index 0000000..8c0a2f1
--- /dev/null
@@ -0,0 +1,22 @@
+fonts = [
+  'LICENSE.rst',
+  'stylesheet.css',
+  'overpass-bold-italic.woff',
+  'overpass-bold.woff',
+  'overpass-italic.woff',
+  'overpass-light-italic.woff',
+  'overpass-light.woff',
+  'overpass-mono-bold.woff',
+  'overpass-mono-light.woff',
+  'overpass-mono-regular.woff',
+  'overpass-mono-semibold.woff',
+  'overpass-regular.woff',
+]
+
+install_data(fonts, install_dir: docs_html_dir / 'fonts')
+
+# This hack enables us to view the web pages
+# from within the uninstalled build tree
+foreach file : fonts
+  configure_file(input: file, output: file, copy: true)
+endforeach
index 09bf436a468ea1c34232368197178cb9453be8a6..7c741041c8c3bdfa476436743381653f787b4bdf 100644 (file)
@@ -288,6 +288,8 @@ foreach data : docs_html_in_gen
   )
 endforeach
 
+subdir('fonts')
+
 
 # This hack enables us to view the web pages
 # from within the uninstalled build tree