--- contrib/camlsearch/source/Makefile.orig	Thu Dec 24 00:36:57 1998
+++ contrib/camlsearch/source/Makefile	Sun Aug  6 14:00:09 2006
@@ -1,6 +1,6 @@
-CAMLCOMP	=camlc -c
-CAMLLEX		=camllex
-CAMLYACC	=camlyacc
+CAMLCOMP	=${PREFIX}/bin/camlc -c
+CAMLLEX		=${PREFIX}/bin/camllex
+CAMLYACC	=${PREFIX}/bin/camlyacc
 CAMLTEX		=../tools/caml-tex-format
 CAMLDETEX	=../tools/caml-tex-extract
 COMPFLAGS	=-I $(UNIXLIBDIR) -I $(COMPLIBDIR) $(DEBUG) -W
@@ -25,7 +25,7 @@
 
 #					Crée l'executable
 $(NAME):	$(OBJS)
-	camlc -custom -g $(LINKFLAGS) -o $(NAME) $(COMPOBJS) $(OBJS) $(UNIXLIBDIR)/libunix.a
+	${PREFIX}/bin/camlc -custom -g $(LINKFLAGS) -o $(NAME) $(COMPOBJS) $(OBJS) $(UNIXLIBDIR)/libunix.a
 
 #					Formate pour TeX
 report: $(TEXOBJ)
@@ -33,8 +33,8 @@
 
 #					Install CamlSearch
 install: $(NAME)
-	cp $(NAME) $(INSTALLDIR)
-	chmod 755 $(INSTALLDIR)/$(NAME)
+	${BSD_INSTALL_SCRIPT} $(NAME) $(INSTALLDIR)
+
 #					Efface les fichiers inutiles
 clean:
 	rm -f $(NAME)


syntax highlighted by Code2HTML, v. 0.9.1