Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] who are the developpers ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Olivier Andrieu <andrieu@i...>
Subject: Re: [Caml-list] who are the developpers ?
 Rakotomandimby Mihamina [Friday 26 March 2004] :
 >
 > Hello ,
 > I'm a slackware user and I try to build a package for Slackware .
 > I saw the Makefile has not an easy structure for that .
 > - I can build with the prefix=/usr
 > - If i install with prefix=/package/location/usr , I saw that 
 > /etc/ld.so.conf is appended with /package/location/usr/lib/ocaml , that 
 > is quite "emmerding", because we want it to be appended with 
 > /usr/lib/ocaml ...
 > 
 > So , the needed thing is to create a DESTDIR Makefile variable ( at 
 > least ) and replace all the $BINDIR , $LIBDIR , $MANDIR , ... in the 
 > subdirectories Makefile install targets  by $DESTDIR/bin 
 > $DESTDIR/caml/lib ...
 > 
 > The most hard part is to know how much Makefile i have to edit , and to 
 > edit them well .

There's no need to edit the Makefile:

  make install PREFIX=$DESTDIR/usr

and then a sed script :

  sed -i -e "s|$DESTDIR||" $DESTDIR/usr/lib/ocaml/ld.conf

That's all ...

-- 
   Olivier

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners