aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig7
1 files changed, 6 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 7f8dec1..c4a149f 100644
--- a/build.zig
+++ b/build.zig
@@ -4,7 +4,7 @@ pub fn build(b: *std.Build) void {
const generate_html = b.addExecutable(.{
.name = "generate_html",
.root_module = b.createModule(.{
- .root_source_file = b.path("util/website.zig"),
+ .root_source_file = b.path("util/generate_html.zig"),
.target = b.graph.host,
}),
});
@@ -18,6 +18,11 @@ pub fn build(b: *std.Build) void {
bundle_html.step.dependOn(b.getInstallStep());
run_bundle_html.dependOn(&bundle_html.step);
+ const serve = b.addSystemCommand(&[_][]const u8{ "lighttpd", "-Df", "util/lighttpd.conf" });
+ const run_server = b.step("serve", "Run a local test server");
+ serve.step.dependOn(b.getInstallStep());
+ run_server.dependOn(&serve.step);
+
const publish_to_prod = b.step("publish", "Publish the website to production");
_ = publish_to_prod;
}