aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/rules.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2019-03-28 19:42:13 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2019-03-28 19:42:13 +0100
commit09139645e866b745c9f8797659f12c90af867015 (patch)
tree846b257841555e5bc91cad1c47eafddc406e19d3 /src/blogc-make/rules.c
parent35702f4cfcc5ffc21d8dcbf0a9d176118fec2927 (diff)
downloadblogc-09139645e866b745c9f8797659f12c90af867015.tar.gz
blogc-09139645e866b745c9f8797659f12c90af867015.tar.bz2
blogc-09139645e866b745c9f8797659f12c90af867015.zip
make: exit 1 on error
Diffstat (limited to 'src/blogc-make/rules.c')
-rw-r--r--src/blogc-make/rules.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/blogc-make/rules.c b/src/blogc-make/rules.c
index b29aab2..5361502 100644
--- a/src/blogc-make/rules.c
+++ b/src/blogc-make/rules.c
@@ -634,7 +634,7 @@ atom_dump_exec(bm_ctx_t *ctx, bc_slist_t *outputs, bc_trie_t *args)
{
char *content = bm_atom_generate(ctx->settings);
if (content == NULL)
- return 3;
+ return 1;
printf("%s", content);
free(content);
return 0;
@@ -794,7 +794,7 @@ int
bm_rule_executor(bm_ctx_t *ctx, bc_slist_t *rule_list)
{
if (ctx == NULL)
- return 3;
+ return 1;
const bm_rule_t *rule = NULL;
int rv = 0;
@@ -831,7 +831,7 @@ bm_rule_executor(bm_ctx_t *ctx, bc_slist_t *rule_list)
if (rule == NULL) {
fprintf(stderr, "blogc-make: error: rule not found: %.*s\n",
(int) (sep - rule_str), rule_str);
- rv = 3;
+ rv = 1;
}
}
@@ -843,7 +843,7 @@ int
bm_rule_execute(bm_ctx_t *ctx, const bm_rule_t *rule, bc_trie_t *args)
{
if (ctx == NULL || rule == NULL)
- return 3;
+ return 1;
bc_slist_t *outputs = NULL;
if (rule->outputlist_func != NULL) {