summaryrefslogtreecommitdiffstats
path: root/makel.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-01-04 21:15:13 +0100
committerMattias Andrée <maandree@kth.se>2022-01-04 21:15:13 +0100
commitcb0d932597377a6dbc595dbe13f55c9a2cf1ad00 (patch)
tree80ec6488e06a260229acb8a45afc44f5c84a3a48 /makel.c
parentRename to makel (diff)
downloadmakel-cb0d932597377a6dbc595dbe13f55c9a2cf1ad00.tar.gz
makel-cb0d932597377a6dbc595dbe13f55c9a2cf1ad00.tar.bz2
makel-cb0d932597377a6dbc595dbe13f55c9a2cf1ad00.tar.xz
Replace dependency on libsimple with boilerplate code
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'makel.c')
-rw-r--r--makel.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/makel.c b/makel.c
index 514be21..eeda146 100644
--- a/makel.c
+++ b/makel.c
@@ -1,7 +1,13 @@
/* See LICENSE file for copyright and license details. */
#include "common.h"
-NUSAGE(EXIT_ERROR, "[-f makefile]");
+const char *argv0 = "makel";
+
+static void
+usage(void) {
+ fprintf(stderr, "%s [-f makefile]\n", argv0);
+ exit(EXIT_ERROR);
+}
int exit_status = 0;
@@ -149,8 +155,6 @@ main(int argc, char *argv[])
size_t nlines;
size_t i;
- libsimple_default_failure_exit = EXIT_ERROR;
-
/* make(1) shall support mixing of options and operands (up to --) */
ARGBEGIN {
case 'f':