On Monday 06 July 2009 23:33:14 Garrett Cooper wrote: > On Mon, Jul 6, 2009 at 7:12 PM, Matt Helsley<[email protected]> wrote: > >> +prefix ?= @prefix@ > > > > I think you should set PREFIX too. Most Makefiles that honored prefix at > > all expected that variable name. Perhaps it would be best to start with > > that and then, if it's best, gradually change all the Makefiles? > > Sure -- will add that then too :).
we should migrate away from this variable. a comment above it should be fine:
# this variable is deprecated, please stop using
PREFIX ?= `echo $(CURDIR)/Makefile should use prefix, not PREFIX 2>/dev/null;
echo $(prefix)`
> >> +
> >> +#
> >> +# Default to /opt/ltp if the directory specified was a zero-length
> >> string, to +# avoid spurious Make system errors.
> >> +#
> >> +# XXX (garrcoop): I'm almost positive there's a better way to do this
> >> in +# autoconf. Haven't figured it out yet...
> >> +#
> >> +ifeq ($(strip $(prefix)),)
> >> +prefix = /opt/ltp
> >> +endif
> >
> > I thought the point was not having to run autoconf to get the default
> > build and install via Makefiles.
>
> Yeah, I thought about it and wondered to myself -- how many folks are
> there out there that actually handcraft config.h and config.mk files.
> Probably not that many folks to be honest...
there is a default config.{h,mk} that get used if autoconf isnt run. this is
what i use.
-mike
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
