From 96db3f4893fb5220234b41f8b4cbc30221905151 Mon Sep 17 00:00:00 2001 From: John Turner Date: Wed, 27 Aug 2025 02:40:36 -0400 Subject: replace makefile with meson --- meson.build | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meson.build (limited to 'meson.build') 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') -- cgit v1.2.3