in reply to let Makefile.PL to do the Readme file for me -- new target?
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:
return <<'MAKE_README'; postamble :: $(PERLRUN) -MPod::Text \ -e "Pod::Text->new (sentence => 1, width => 78)->parse_from_file( +qw( $(TO_INST_PM) Readme) );" MAKE_README
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Makefile caveat: tabs not spaces
by afoken (Chancellor) on Jan 20, 2021 at 23:16 UTC | |
by LanX (Saint) on Jan 20, 2021 at 23:30 UTC | |
by syphilis (Archbishop) on Jan 21, 2021 at 00:44 UTC | |
by LanX (Saint) on Jan 21, 2021 at 01:01 UTC | |
by syphilis (Archbishop) on Jan 21, 2021 at 03:10 UTC | |
by bliako (Abbot) on Jan 21, 2021 at 00:23 UTC | |
by LanX (Saint) on Jan 21, 2021 at 00:27 UTC | |
by pryrt (Abbot) on Jan 21, 2021 at 17:10 UTC | |
| |
by bliako (Abbot) on Jan 21, 2021 at 00:46 UTC | |
|