Add some info about git commit when printing the version.

Also modify dependency generation to be a side-effect of compilation.
It's still not quite perfect in picking up some changes (in particular
just after a commit, no files have changed but the git identification
is now different).
This commit is contained in:
Olaf Seibert
2015-07-06 21:43:03 +02:00
parent ce2d526291
commit 80b20b17eb
4 changed files with 41 additions and 6 deletions

View File

@@ -82,7 +82,7 @@ static void print_version(
fprintf(strm, "macro11 - portable MACRO11 assembler for DEC PDP-11\n");
fprintf(strm, " Version %s\n", VERSIONSTR);
fprintf(strm, " Copyright 2001 Richard Krehbiel,\n");
fprintf(strm, " modified 2009 by Joerg Hoppe.\n");
fprintf(strm, " modified 2009 by Joerg Hoppe,\n");
fprintf(strm, " modified 2015 by Olaf 'Rhialto' Seibert.\n");
}