summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build3
-rw-r--r--web/layouts/meson.build12
-rw-r--r--web/meson.build21
3 files changed, 36 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/layouts/meson.build b/web/layouts/meson.build
new file mode 100644
index 0000000..e582474
--- /dev/null
+++ b/web/layouts/meson.build
@@ -0,0 +1,12 @@
+sources = [
+ 'baseof.html',
+ 'home.html',
+]
+
+foreach source : sources
+ configure_file(
+ input: source,
+ output: source,
+ copy: true,
+ )
+endforeach
diff --git a/web/meson.build b/web/meson.build
new file mode 100644
index 0000000..743aa77
--- /dev/null
+++ b/web/meson.build
@@ -0,0 +1,21 @@
+hugo_toml = 'hugo.toml'
+
+configure_file(
+ input: hugo_toml,
+ output: hugo_toml,
+ copy: true,
+)
+
+subdir('layouts')
+
+custom_target('website',
+ output: ['public'],
+ command: [
+ 'hugo',
+ '--source',
+ meson.current_build_dir(),
+ '--destination',
+ meson.current_build_dir() / 'public',
+ ],
+ build_by_default: true,
+)