meson: docs/fonts: install font files

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
Pavel Hrdina 2020-06-18 02:27:48 +02:00
parent c377c14639
commit 033e016843
3 changed files with 25 additions and 18 deletions

View 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 \

22
docs/fonts/meson.build Normal file
View File

@ -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

View 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