]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: docs/js: install javascript files
authorPavel Hrdina <phrdina@redhat.com>
Thu, 18 Jun 2020 00:30:14 +0000 (02:30 +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/js/meson.build [new file with mode: 0644]
docs/meson.build

index 0e59b00961ce693e50cff98c3af6dda9f7cfa896..6b2ee2747e22e82814ba43ca3a5a985cc41cc2bb 100644 (file)
@@ -21,18 +21,11 @@ all: vpathhack
 # This hack enables us to view the web pages
 # from within the uninstalled build tree
 vpathhack:
-       @for dir in js logos; \
+       @for dir in logos; \
        do \
          test -e $$dir || ln -s $(srcdir)/$$dir $$dir ; \
        done
 
-javascript = \
-  js/main.js \
-  $(NULL)
-
-javascriptdir = $(HTML_DIR)/js
-javascript_DATA = $(javascript)
-
 logofiles = \
   logos/logo-base.svg \
   logos/logo-square.svg \
diff --git a/docs/js/meson.build b/docs/js/meson.build
new file mode 100644 (file)
index 0000000..da90cbf
--- /dev/null
@@ -0,0 +1,11 @@
+docs_js_files = [
+  'main.js',
+]
+
+install_data(docs_js_files, install_dir: docs_html_dir / 'js')
+
+# This hack enables us to view the web pages
+# from within the uninstalled build tree
+foreach file : docs_js_files
+  configure_file(input: file, output: file, copy: true)
+endforeach
index 17f491a5b70a6ad135d43834842d33d7c97aacff..39d12b5dfd004ac80c58edf111c55429c764f0d3 100644 (file)
@@ -294,6 +294,7 @@ endforeach
 subdir('fonts')
 subdir('html')
 subdir('internals')
+subdir('js')
 
 
 # This hack enables us to view the web pages