autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Manual substitution (was: Default for libexecdir)


From: Andreas Schwab
Subject: Re: Manual substitution (was: Default for libexecdir)
Date: Wed, 09 Apr 2003 10:17:06 +0200
User-agent: Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.3.50 (gnu/linux)

Bill Moseley <address@hidden> writes:

|> Well, this is what I'm using in a Makefile.am:
|> 
|> CLEANFILES = swish.cgi
|> swish.cgi: swish.cgi.in
|>         @rm -f swish.cgi
|>         @sed \
|>                 -e 's,@@perlmoduledir@@,$(libexecdir)/perl,' \
|>                 -e 's,@@swishbindir@@,$(bindir),' \
|>                 -e 's,@@perlbinary@@,$(PERL),' \
|>                          $(srcdir)/swish.cgi.in > swish.cgi
|> 
|> Is there a better way to do those substitutions?

That looks ok.

|> I can't use @bindir@
|> directly as it gets replaced in the Makefile generation, of course.

You can, you just have to spell it differently, like
sed -e 's,@''bindir@,$(bindir),'.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]