Create a variable in a makefile by reading contents of another file January 8, 2023 by Tarik Assuming GNU make: file := whatever.txt variable := $(shell cat ${file})