blob: b0c4b2f75e7dbc3feb73ecb14541f2a78e7b1913 (
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')
frontend = 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,
)
|