summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-08-27 02:40:36 -0400
committerJohn Turner <jturner.usa@gmail.com>2025-08-27 02:40:36 -0400
commit96db3f4893fb5220234b41f8b4cbc30221905151 (patch)
treeff8475f340eb7d15cbe18ac1545621d3cfb858b3 /meson.build
parentb5e49151e2d5b0d5bf1d977581dbcc6cb2650b15 (diff)
downloadwebsite-96db3f4893fb5220234b41f8b4cbc30221905151.tar.gz
replace makefile with meson
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build30
1 files changed, 30 insertions, 0 deletions
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..5b99de7
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,30 @@
+project('website')
+
+fs = import('fs')
+
+emacs = find_program('emacs')
+
+site = 'jturnerusa.dev'
+
+build_command = [
+ emacs,
+ '@INPUT@',
+ '-batch',
+ '-eval',
+ '(org-export-to-file \'html "/dev/stdout")',
+]
+
+posts = files('index.org')
+
+foreach post : posts
+ custom_target(
+ output: fs.replace_suffix(post, '.html'),
+ input: post,
+ command: build_command,
+ install: true,
+ install_dir: '/var/www' / site,
+ capture: true,
+ )
+endforeach
+
+subdir('blog')