Index: latex-compile-2.1.3/Makefile
===================================================================
--- latex-compile-2.1.3.orig/Makefile	2006-03-29 19:23:32.000000000 +0200
+++ latex-compile-2.1.3/Makefile	2006-03-29 19:27:29.000000000 +0200
@@ -1,10 +1,10 @@
 
 prefix=/usr/local
 
-BINDIR=$(DESTDIR)$(prefix)/bin
+BINDIR=$(DESTDIR)$(prefix)/share/latex-compile
 LATEXDIR=$(DESTDIR)$(prefix)/share/texmf/tex/latex/latex-compile
 LATEXCFGDIR=$(DESTDIR)$(prefix)/share/texmf/tex/latex/latex-compile
-DOCDIR=$(DESTDIR)$(prefix)/share/texmf/doc/latex/latex-compile
+DOCDIR=$(DESTDIR)$(prefix)/share/doc/texmf/latex/latex-compile
 INCLUDEDIR=$(DESTDIR)$(prefix)/include
 
 BINFILES=src/figdepth src/gensubfig src/latexfilter
Index: latex-compile-2.1.3/src/latex-compile.dtx
===================================================================
--- latex-compile-2.1.3.orig/src/latex-compile.dtx	2006-03-29 19:23:32.000000000 +0200
+++ latex-compile-2.1.3/src/latex-compile.dtx	2006-03-29 19:23:33.000000000 +0200
@@ -1008,7 +1008,7 @@
 
 # Look for local version of our program before PATH
 _lu_which = $(firstword $(wildcard $(addsuffix /$(1), \
-		bin . $(subst :, ,$(PATH)))))
+		bin . $(subst :, ,$(PATH)) /usr/share/latex-compile)))
 $(eval $(call lu-setvar-global,GENSUBFIG,$$(call _lu_which,gensubfig)))
 $(eval $(call lu-setvar-global,FIGDEPTH,$$(call _lu_which,figdepth)))
 $(eval $(call lu-setvar-global,LATEXFILTER,$$(call _lu_which,latexfilter)))
