CFLAGS += -Iutil/include -Iast/include -Ilibcmdapp/src -D_GNU_SOURCE
+# add commit hash to version for now
+CFLAGS += -DGWION_VERSION=\"$(shell git log -n1 --format="%h")\"
+
ifeq (${DEBUG_STACK}, 1)
CFLAGS += -DDEBUG_STACK
endif
}
}
+#ifndef GWION_VERSION
+#define GWION_VERSION "N.A."
+#endif
+
ANN m_bool _arg_parse(struct ArgInternal *arg) {
cmdapp_t app;
const cmdapp_info_t info = {
.program = "gwion",
.synopses = NULL, // so it's automatic
- .version = "N.A.",
+ .version = GWION_VERSION,
.author = "Jérémie Astor",
.year = 2016,
.description = "Strongly timed musical programming language.",