W whired123 Member Joined Nov 15, 2021 Messages 82 Reaction score 5 Credits 613 Feb 17, 2025 #1 Can you do it? Code: $ cat makefile const ABC = 123 $ make makefile:1: *** missing separator. Stop. It seems not to me ...
Can you do it? Code: $ cat makefile const ABC = 123 $ make makefile:1: *** missing separator. Stop. It seems not to me ...
dos2unix Well-Known Member Joined May 3, 2019 Messages 3,498 Reaction score 3,234 Credits 31,331 Feb 17, 2025 #2 Code: const ABC = 123 all: echo $(ABC) Every command has to have a [tab] before it. Not spaces. It is a requirement. You need to read this. GNU make GNU make www.gnu.org
Code: const ABC = 123 all: echo $(ABC) Every command has to have a [tab] before it. Not spaces. It is a requirement. You need to read this. GNU make GNU make www.gnu.org
OP W whired123 Member Joined Nov 15, 2021 Messages 82 Reaction score 5 Credits 613 Feb 17, 2025 #3 Code: $ cat -T makefile const ABC = 123 all: ^Iecho $(ABC) $ make makefile:1: *** missing separator. Stop.
Code: $ cat -T makefile const ABC = 123 all: ^Iecho $(ABC) $ make makefile:1: *** missing separator. Stop.
JasKinasis Super Moderator Staff member Gold Supporter Joined Apr 25, 2017 Messages 1,996 Reaction score 3,040 Credits 17,853 Feb 17, 2025 #4 AFAIK, there is no "const" keyword in the Makefile syntax for GNU make. That's almost certainly where you're going wrong.
AFAIK, there is no "const" keyword in the Makefile syntax for GNU make. That's almost certainly where you're going wrong.
OP W whired123 Member Joined Nov 15, 2021 Messages 82 Reaction score 5 Credits 613 Feb 17, 2025 #5 So the makefile constants do not exist?
JasKinasis Super Moderator Staff member Gold Supporter Joined Apr 25, 2017 Messages 1,996 Reaction score 3,040 Credits 17,853 Feb 18, 2025 #6 whired123 said: So the makefile constants do not exist? Click to expand... No, not unless it's something that has been recently added to GNU make. I'm still using Debian 11 (oldstable) so I might be a bit behind the times. But AFAIK there has never been a const keyword in the Makefile syntax.
whired123 said: So the makefile constants do not exist? Click to expand... No, not unless it's something that has been recently added to GNU make. I'm still using Debian 11 (oldstable) so I might be a bit behind the times. But AFAIK there has never been a const keyword in the Makefile syntax.
OP W whired123 Member Joined Nov 15, 2021 Messages 82 Reaction score 5 Credits 613 Feb 24, 2025 #7 Thanks