I am trying to create a file and set the contents of a file to a variable but the variable is always seen as empty.An example: define FILE_VAR    cat /output/1.txt >> /output/2.txt    $(eval s := $(shell cat /output/2.txt))     $(eval FILENAME_BIN=$(word 1, $(s)).$(word 2, $(s)).$(word 3, $(s)).bin)     $(eval FILENAME_JFFS2=$(word 1, $(s)).$(word 2, $(s)).$(word 3, $(s)).jffs2)        endefCalled via this as a post-gen hook:# Alter the post-gen hooks, depending on what options are selectedifneq ($(BR2_TARGET_ROOTFS_EXT2_FILE_VAR),)    ROOTFS_EXT2_POST_GEN_HOOKS += FILE_VARendifIf 2.txt exists before running this the variables will be set to the data prior to running make (not the new redirected data), if 2.txt doesn't exist then the variables are not set. It looks like it is evaluating what the file is like when make is first run, which is not what I want.
Set newly created file as variable in makefile
bash;make;variable;buildroot