Skip to content

Commit

Permalink
Replace @RUNTIME_NAME@ with the target in generated files
Browse files Browse the repository at this point in the history
In commit 966bd57 for PR kata-containers#902, the makefile was changed to automate
the replacement of user variables. However, one variable was treated
specially in the original `sed` replacements, namely `RUNTIME_NAME`
which was replaced by `$(TARGET)`.

This commit adds the `RUNTIME_NAME` variable to the makefile in order
to ensure that the replacement works correctly.

Fixes: kata-containers#993

Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
  • Loading branch information
c3d committed Oct 19, 2020
1 parent ed711b5 commit 32a1a0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runtime/Makefile
Expand Up @@ -47,6 +47,9 @@ PROJECT_ORG = $(PROJECT_TAG)
PROJECT_URL = https://github.com/$(PROJECT_ORG)
PROJECT_BUG_URL = $(PROJECT_URL)/kata-containers/issues/new

# @RUNTIME_NAME@ should be replaced with the target in generated files
RUNTIME_NAME = $(TARGET)

# list of scripts to install
SCRIPTS :=

Expand Down

0 comments on commit 32a1a0c

Please sign in to comment.