blob: 4505fdbf96079253b66745e34eb91fe47a889d0c (
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
27
28
|
fs = import('fs')
hugo = find_program('hugo', required : true)
hugo_source_targets = []
css = meson.current_source_dir() / 'simple.css' / 'simple.css'
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,
)
|