mirror of
https://github.com/open-simh/simtools.git
synced 2026-04-28 12:47:20 +00:00
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:
10
macro11.h
10
macro11.h
@@ -1,9 +1,17 @@
|
||||
#ifndef MACRO11_H
|
||||
#define MACRO11_H
|
||||
|
||||
#define VERSIONSTR "0.4wip (22 May 2015)"
|
||||
#include "git-info.h"
|
||||
|
||||
#define BASE_VERSION "0.4wip"
|
||||
|
||||
#if defined(GIT_VERSION)
|
||||
#define VERSIONSTR BASE_VERSION" ("GIT_VERSION"\n\t"GIT_AUTHOR_DATE")"
|
||||
#else
|
||||
#define VERSIONSTR BASE_VERSION" (21 June 2015)"
|
||||
/*#define VERSIONSTR "0.3 (April 21, 2009)" */
|
||||
/*#define VERSIONSTR "0.2 July 15, 2001" */
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user