blob: e387145c075a69b20b9cfc5d95cbd34ab70ae9d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
fs = import('fs')
hugo = find_program('hugo', required : true)
hugo_source_targets = []
foreach hugo_source : [
'hugo.toml',
]
hugo_source_targets += fs.copyfile(hugo_source)
endforeach
subdir('layouts')
custom_target(
output : 'public',
command : [
hugo,
'build',
'--source', meson.current_build_dir(),
'--destination', meson.current_build_dir() / 'public',
],
depends : hugo_source_targets,
build_by_default : true,
)
|