summaryrefslogtreecommitdiff
path: root/frontend/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/meson.build')
-rw-r--r--frontend/meson.build25
1 files changed, 25 insertions, 0 deletions
diff --git a/frontend/meson.build b/frontend/meson.build
new file mode 100644
index 0000000..e387145
--- /dev/null
+++ b/frontend/meson.build
@@ -0,0 +1,25 @@
+fs = import('fs')
+
+hugo = find_program('hugo', required : true)
+
+hugo_source_targets = []
+
+foreach hugo_source : [
+ 'hugo.toml',
+]
+ hugo_source_targets += fs.copyfile(hugo_source)
+endforeach
+
+subdir('layouts')
+
+custom_target(
+ output : 'public',
+ command : [
+ hugo,
+ 'build',
+ '--source', meson.current_build_dir(),
+ '--destination', meson.current_build_dir() / 'public',
+ ],
+ depends : hugo_source_targets,
+ build_by_default : true,
+)