--- ./ocamlgraph-1.1-orig/Makefile.in 2009-07-14 03:19:45.000000000 +0000 +++ ./ocamlgraph-1.1-ptch/Makefile.in 2009-07-14 03:19:34.000000000 +0000 @@ -242,29 +242,34 @@ install: install-$(OCAMLBEST) install-byte ifeq (@LABLGNOMECANVAS@,yes) + mkdir -p $(DESTDIR)$(BINDIR) ifeq ($(OCAMLBEST),byte) - cp -f $(BINDIR)/graph-editor.byte $(BINDIR)/graph-editor$(EXE) - cp -f $(BINDIR)/graph-viewer.byte $(BINDIR)/graph-viewer$(EXE) + cp -f $(DESTDIR)$(BINDIR)/graph-editor.byte $(DESTDIR)$(BINDIR)/graph-editor$(EXE) + cp -f $(DESTDIR)$(BINDIR)/graph-viewer.byte $(DESTDIR)$(BINDIR)/graph-viewer$(EXE) else - cp -f $(BINDIR)/graph-editor.opt $(BINDIR)/graph-editor$(EXE) - cp -f $(BINDIR)/graph-viewer.opt $(BINDIR)/graph-viewer$(EXE) + cp -f $(DESTDIR)$(BINDIR)/graph-editor.opt $(DESTDIR)$(BINDIR)/graph-editor$(EXE) + cp -f $(DESTDIR)$(BINDIR)/graph-viewer.opt $(DESTDIR)$(BINDIR)/graph-viewer$(EXE) endif endif install-byte: + mkdir -p "$(DESTDIR)$(OCAMLLIB)" cp -f graph.cmo graph.cmi $(CMA) "$(DESTDIR)$(OCAMLLIB)" ifeq (@LABLGNOMECANVAS@,yes) - cp -f $(ED_DIR)/editor.byte $(BINDIR)/graph-editor.byte + mkdir -p $(DESTDIR)$(BINDIR) + cp -f $(ED_DIR)/editor.byte $(DESTDIR)$(BINDIR)/graph-editor.byte cp -f $(VIEWER_CMO) "$(DESTDIR)$(OCAMLLIB)" - cp -f $(VIEWER_DIR)/viewgraph.byte $(BINDIR)/graph-viewer.byte + cp -f $(VIEWER_DIR)/viewgraph.byte $(DESTDIR)$(BINDIR)/graph-viewer.byte endif install-opt: install-byte + mkdir -p "$(DESTDIR)$(OCAMLLIB)" cp -f graph$(LIBEXT) graph.cmx $(CMXA) "$(DESTDIR)$(OCAMLLIB)" ifeq (@LABLGNOMECANVAS@,yes) - cp -f $(ED_DIR)/editor.opt $(BINDIR)/graph-editor.opt + mkdir -p $(DESTDIR)$(BINDIR) + cp -f $(ED_DIR)/editor.opt $(DESTDIR)$(BINDIR)/graph-editor.opt cp -f $(VIEWER_CMX) "$(DESTDIR)$(OCAMLLIB)" - cp -f $(VIEWER_DIR)/viewgraph.opt $(BINDIR)/graph-viewer.opt + cp -f $(VIEWER_DIR)/viewgraph.opt $(DESTDIR)$(BINDIR)/graph-viewer.opt endif install-findlib: META