feat: autotools (#10)

* start configure

* ignore some files

* wip configure

* working configure

* working with dev tools

* rename automake -> release

* update readme

* update Makefile.dev
This commit is contained in:
2025-06-05 15:06:06 +02:00
committed by GitHub
parent d63f3f5023
commit 7626f99e32
10 changed files with 5625 additions and 32 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
#include "args.h"
#include "const.h"
#include "config.h"
#include "rand.h"
#include <stdio.h>
#include <stdlib.h>
@@ -7,9 +7,9 @@
#include <time.h>
void print_help(int status_code) {
puts(NAME
puts(PACKAGE
" " VERSION "\n\n"
"usage: " NAME " "
"usage: " PACKAGE " "
"[--help] "
"[-v] "
"[-q] "
@@ -145,7 +145,7 @@ parameters parse_args(int argc, char **argv) {
} else if (is_arg(arg, "-q") || is_arg(arg, "--quiet")) {
params.quiet = true;
} else if (is_arg(arg, "-v") || is_arg(arg, "--version")) {
puts(NAME " " VERSION);
puts(PACKAGE " " VERSION);
exit(0);
} else if (is_arg(arg, "-w") || is_arg(arg, "--width")) {
params.width = parse_ushort(arg, value);