blob: 6af84e546e5006ddd867a925a4ee86c0006af32f (
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
26
|
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')
subdir('static')
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,
)
|