GETBINDIR = $(GETLIBDIR) | sed -e 's|/lib/[^/]*$$|/bin|' -e 's|/lib$$|/bin|'
GETRANLIB = which ranlib 2>/dev/null | sed -e 's|.*/ranlib$$|!|' -e 's/^[^!]*$$/:/' -e 's/!/ranlib/'
+LABLGTKDIR = $(LIBDIR)/lablgtk
+
ifdef USE_GNOME
GTKGETCFLAGS = gtk-config --cflags`" -I"`gnome-config --includedir
GNOMELIBS = `gnome-config --libs gtkxmhtml`
@echo LIBDIR=$(LIBDIR) >> config.make
@echo BINDIR=`$(GETBINDIR)` >> config.make
@echo INSTALLDIR=$(INSTALLDIR) >> config.make
+ @echo LABLGTKDIR=$(LABLGTKDIR) >> config.make
# Luca: was
# @echo GTKCFLAGS=`$(GTKGETCFLAGS)` -I/usr/lib/ocaml/lablgtk >> config.make
# Luca: now
-LIBDIR = /usr/lib/ocaml
+GETLIBDIR = ocamlc -v | grep "^Standard" | sed 's/^.*: *//'
+LIBDIR = `$(GETLIBDIR)`
INSTALLDIR = $(LIBDIR)/minidom
OBJECTS = minidom.cmi minidom.cmo ml_minidom.o ominidom.cmi ominidom.cmo
OBJECTS_OPT = minidom.cmx ominidom.cmx
opt: $(OBJECTS_OPT) test.opt
ml_minidom.o: ml_minidom.c
- gcc -c -I/usr/lib/ocaml/caml/ `glib-config --cflags` `minidom-config --cflags` $<
+ gcc -c -I$(LIBDIR)/caml/ `glib-config --cflags` `minidom-config --cflags` $<
minidom.cmi: minidom.mli
ocamlc -c $<