Syntactic Confectionery Delight | |
PerlMonks |
Makefile caveat: tabs not spacesby bliako (Monsignor) |
on Jan 20, 2021 at 14:49 UTC ( [id://11127149]=note: print w/replies, xml ) | Need Help?? |
Apropos Makefile: since time immemorial Makefile uses tabs as part of its syntax. Tabs are important to Makefile (at least in *nix, though later GNU additions make this flexible). 8 or 4 spaces will not do. And so, in Discipulus example:
In the here-doc, the space before $(PERLRUN) should be a single (real) tab if we want to be portable, I guess. But in M$-windows system dmake probably made a compromise? Or it's run with special command-line flags? Because I see there are just 4 spaces and not a single tab. Apropos2: recently there was a discussion about tabs and spaces in code and how editors can transform these. They were not counting die-hard Makefile. bw, bliako
In Section
Seekers of Perl Wisdom
|
|