diff options
author | John Turner <jturner.usa@gmail.com> | 2025-08-27 02:40:36 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2025-08-27 02:40:36 -0400 |
commit | 96db3f4893fb5220234b41f8b4cbc30221905151 (patch) | |
tree | ff8475f340eb7d15cbe18ac1545621d3cfb858b3 /meson.build | |
parent | b5e49151e2d5b0d5bf1d977581dbcc6cb2650b15 (diff) | |
download | website-96db3f4893fb5220234b41f8b4cbc30221905151.tar.gz |
replace makefile with meson
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 30 |
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') |