summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build3
-rw-r--r--web/meson.build16
2 files changed, 19 insertions, 0 deletions
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..537d067
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,3 @@
+project('iot-contact')
+
+subdir('web')
diff --git a/web/meson.build b/web/meson.build
new file mode 100644
index 0000000..3fcffed
--- /dev/null
+++ b/web/meson.build
@@ -0,0 +1,16 @@
+custom_target('website',
+ output: ['public'],
+ command: [
+ 'hugo',
+ '--source',
+ meson.current_source_dir(),
+ '--destination',
+ meson.current_build_dir() / 'public',
+ ],
+ depend_files: [
+ 'hugo.toml',
+ 'layouts/baseof.html',
+ 'layouts/home.html',
+ ],
+ build_by_default: true,
+)