Commit 3ee9f00b authored by Anthony Mallet's avatar Anthony Mallet
Browse files

[mk] Compute _ROBOTPKG_NOW in the rule that setups the 'trusted' environment

_ROBOTPKG_NOW is the current date, formatted for computing the "patch level"
version suffix appended for checkout packages. This has to remain constant
during all phases of one make invocation.

The best place to compute this variable is here, instead of in utils.mk,
because some sub-make in robotpkg sometimes resart themselves after dependency
resolution, leading to a new value for the _ROBOTPKG_NOW variable.
parent 57189c08
#
# Copyright (c) 2013 LAAS/CNRS
# Copyright (c) 2013,2018 LAAS/CNRS
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
......@@ -37,6 +37,7 @@ unsetenv:
$(foreach _,${_ENV_VARS}, \
$(if $(filter environment,$(origin $_)), \
$(call quote,$_=${$_}))) \
_ROBOTPKG_NOW=`${DATE} "+%m%d%H%M%S"` \
ROBOTPKG_TRUSTED_ENV=robotpkg \
${MAKE} ${MFLAGS} ${MAKEOVERRIDES} ${MAKECMDGOALS}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment