Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

@slash@ in Makefile.in Files

11 views
Skip to first unread message

Chromatic

unread,
Apr 14, 2006, 3:35:37 PM4/14/06
to perl6-i...@perl.org
Looking at patch #12967, particle revised a previous patch and replace @slash@
with / in paths in the Makefile. I used the former out of a cargo-cult sense
of platform independence. Is that unnecessary, or is it still a good idea?

-- c

Jerry Gay

unread,
Apr 14, 2006, 3:40:24 PM4/14/06
to chromatic, perl6-i...@perl.org
config/gen/makefiles.pm offers a 'replace-slashes' option for
makefiles, which does the right thing, and makes @slash@ unnecessary
if it's specified.

Will Coleda

unread,
Apr 14, 2006, 3:41:54 PM4/14/06
to chromatic, perl6-i...@perl.org
The makefile generator has an option to automatically do the slash
replacement for you. In the interest of readability, I recommend
using that and removing @slash@ from the .in files. (Do make sure if
you change other .in files that they have this option enabled.
Example from config/gen/makefiles.pm:

genfile(
'config/gen/makefiles/root.in' => 'Makefile',
commentType => '#',
replace_slashes => 1,
conditioned_lines => 1
);

0 new messages