Re: Make-depend

Matthew D. Langston (langston@SLAC.stanford.edu)
Thu, 08 Jul 1999 23:25:55 -0700


Dmitri Litvintsev wrote:
>
> just pulled root_v2.22.source.tar (2_22_08) from the site. tried to
> compile but alas. I've noticed that Make-depend contains hardcoded
> directories ...

The following perl snippet will fix this:

$ perl -i.orig -p -e 's{/[^\s]+}{};s{^[^:]+:\s*$}{}' Make-depend

If by some chance you don't have Perl on your system, but you have
"sed", then the Perl command can be replaced with the following two
lines:

$ mv Make-depend Make-depend.orig
$ sed -e 's/\/[^ ][^ ]*//' -e 's/^[^:][^:]*:[ ]$//' Make-depend.orig > Make-depend

--
Matthew D. Langston
SLD, Stanford Linear Accelerator Center
langston@SLAC.Stanford.EDU