Compare commits

...

2 commits

Author SHA1 Message Date
Imbus
19806ab0b5 Repair broken install target 2026-02-05 00:16:38 +01:00
Imbus
377bcb5642 Guard for when defs CR_YEAR and BLDDATE are not supplied 2026-02-05 00:16:06 +01:00
2 changed files with 7 additions and 2 deletions

View file

@ -18,5 +18,4 @@ clean:
rm -f *.o writeimg
install: writeimg
install -c -s writeimg /usr/local/bin/writeimg
install -m 0755 $(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
install -m 0755 writeimg /usr/local/bin/writeimg

View file

@ -16,6 +16,10 @@
#define VERSION "1.0.0"
#endif
#ifndef CR_YEAR
#define CR_YEAR "2026"
#endif
// clang-format off
const char help[] =
"Usage:\n"
@ -124,7 +128,9 @@ static const struct option longopts[] = {
int main(int argc, char *argv[]) {
printf("%s version %s\n", basename(argv[0]), VERSION);
#ifdef BLDDATE
printf("Build date: %s\n", BLDDATE);
#endif
fprintf(stdout, copyright, CR_YEAR);
printf("\n");