[Makefile.am] Fixed version date and time handling.

This commit is contained in:
AJ Kelly
2011-08-23 15:48:56 -05:00
parent 543145df16
commit aa3041fe94
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ increment_version:
build=0; \
fi; \
echo "extern const unsigned long version_num = $$build;" > ver.cpp; \
echo "extern const char *const version_time = \"`date`\";" >> ver.cpp;
echo "extern const char *const version_date = \"`date`\";" >> ver.cpp;
echo "extern const char *const version_time = \"`date +"%H:%M:%S"`\";" >> ver.cpp;
echo "extern const char *const version_date = \"`date +"%Y/%m/%d"`\";" >> ver.cpp;
ver.cpp:
$(MAKE) increment_version