I could like to append a timestamp to the build property value in Android.mk file.Is there a way to get the current timestamp (format "YYMMDD") in a Android make file?
Asked
Active
Viewed 260 times
-1
-
Does this answer your question? [Print timestamp in makefile](https://stackoverflow.com/questions/37722572/print-timestamp-in-makefile) – tripleee Dec 10 '19 at 13:46
-
Can you accept or close this question? – Vroomfondel Dec 27 '19 at 21:34
1 Answers
0
I don't know if there is something specific with an Android make file, but the following works in GNUmake:
DATE := $(shell date --utc +%Y%m%d)
$(info Current UTC date is $(DATE))

Vroomfondel
- 2,704
- 1
- 15
- 29