2011/8/1 Kester Habermann <kes...@opencsw.org>: > Hi Maciej, > > On Sun, Jul 31, 2011 at 11:58:12AM +0100, Maciej Blizi??ski wrote: >> > +install-custom: >> > + ( TCL_INSTDIR=$(DESTDIR)/opt/csw/lib/tcl`echo 'puts $$tcl_version' >> | /opt/csw/bin/tclsh`/$(NAME)$(VERSION) ;\ >> >> If you use $(bindir) instead of /opt/csw/bin, you avoid hardcoding /opt/csw. >> This way, you make it easier to build this package in a different prefix. > > Thanks for the hints again. Before I coded this, I actually looked for a GAR > variable that held the installation prefix (/opt/csw/), but I could not find > one. > The $(bindir) only gives /opt/csw/bin. Is there also something for > /opt/csw/lib/? > In same cases the generic one for /opt/csw/ would also be useful.
The variable that holds /opt/csw is $(prefix). Ideally, you would set that variable to something else such as /usr/local, and build into that prefix. For bits like /opt/csw/lib/tcl, I often use $(libdir)/tcl. I hope this helps! Maciej _______________________________________________ devel mailing list devel@lists.opencsw.org https://lists.opencsw.org/mailman/listinfo/devel