Lines 147-152
Link Here
|
147 |
VIEWER_CMO:=$(patsubst %,$(VIEWER_DIR)/%.cmo, $(VIEWER_CMO)) |
147 |
VIEWER_CMO:=$(patsubst %,$(VIEWER_DIR)/%.cmo, $(VIEWER_CMO)) |
148 |
VIEWER_CMX=$(VIEWER_CMO:.cmo=.cmx) |
148 |
VIEWER_CMX=$(VIEWER_CMO:.cmo=.cmx) |
149 |
VIEWER_CMI=$(VIEWER_CMO:.cmo=.cmi) |
149 |
VIEWER_CMI=$(VIEWER_CMO:.cmo=.cmi) |
|
|
150 |
VIEWER_O=$(VIEWER_CMO:.cmo=.o) |
150 |
|
151 |
|
151 |
VIEWER_INCLUDES= @INCLUDEGTK2@ -I $(VIEWER_DIR) $(INCLUDES) -I . |
152 |
VIEWER_INCLUDES= @INCLUDEGTK2@ -I $(VIEWER_DIR) $(INCLUDES) -I . |
152 |
|
153 |
|
Lines 242-270
Link Here
|
242 |
|
243 |
|
243 |
install: install-$(OCAMLBEST) install-byte |
244 |
install: install-$(OCAMLBEST) install-byte |
244 |
ifeq (@LABLGNOMECANVAS@,yes) |
245 |
ifeq (@LABLGNOMECANVAS@,yes) |
|
|
246 |
mkdir -p $(DESTDIR)$(BINDIR) |
245 |
ifeq ($(OCAMLBEST),byte) |
247 |
ifeq ($(OCAMLBEST),byte) |
246 |
cp -f $(BINDIR)/graph-editor.byte $(BINDIR)/graph-editor$(EXE) |
248 |
cp -f $(DESTDIR)$(BINDIR)/graph-editor.byte $(DESTDIR)$(BINDIR)/graph-editor$(EXE) |
247 |
cp -f $(BINDIR)/graph-viewer.byte $(BINDIR)/graph-viewer$(EXE) |
249 |
cp -f $(DESTDIR)$(BINDIR)/graph-viewer.byte $(DESTDIR)$(BINDIR)/graph-viewer$(EXE) |
248 |
else |
250 |
else |
249 |
cp -f $(BINDIR)/graph-editor.opt $(BINDIR)/graph-editor$(EXE) |
251 |
cp -f $(DESTDIR)$(BINDIR)/graph-editor.opt $(DESTDIR)$(BINDIR)/graph-editor$(EXE) |
250 |
cp -f $(BINDIR)/graph-viewer.opt $(BINDIR)/graph-viewer$(EXE) |
252 |
cp -f $(DESTDIR)$(BINDIR)/graph-viewer.opt $(DESTDIR)$(BINDIR)/graph-viewer$(EXE) |
251 |
endif |
253 |
endif |
252 |
endif |
254 |
endif |
253 |
|
255 |
|
254 |
install-byte: |
256 |
install-byte: |
|
|
257 |
mkdir -p "$(DESTDIR)$(OCAMLLIB)" |
255 |
cp -f graph.cmo graph.cmi $(CMA) "$(DESTDIR)$(OCAMLLIB)" |
258 |
cp -f graph.cmo graph.cmi $(CMA) "$(DESTDIR)$(OCAMLLIB)" |
256 |
ifeq (@LABLGNOMECANVAS@,yes) |
259 |
ifeq (@LABLGNOMECANVAS@,yes) |
257 |
cp -f $(ED_DIR)/editor.byte $(BINDIR)/graph-editor.byte |
260 |
mkdir -p $(DESTDIR)$(BINDIR) |
|
|
261 |
cp -f $(ED_DIR)/editor.byte $(DESTDIR)$(BINDIR)/graph-editor.byte |
258 |
cp -f $(VIEWER_CMO) "$(DESTDIR)$(OCAMLLIB)" |
262 |
cp -f $(VIEWER_CMO) "$(DESTDIR)$(OCAMLLIB)" |
259 |
cp -f $(VIEWER_DIR)/viewgraph.byte $(BINDIR)/graph-viewer.byte |
263 |
cp -f $(VIEWER_DIR)/viewgraph.byte $(DESTDIR)$(BINDIR)/graph-viewer.byte |
260 |
endif |
264 |
endif |
261 |
|
265 |
|
262 |
install-opt: install-byte |
266 |
install-opt: install-byte |
|
|
267 |
mkdir -p "$(DESTDIR)$(OCAMLLIB)" |
263 |
cp -f graph$(LIBEXT) graph.cmx $(CMXA) "$(DESTDIR)$(OCAMLLIB)" |
268 |
cp -f graph$(LIBEXT) graph.cmx $(CMXA) "$(DESTDIR)$(OCAMLLIB)" |
264 |
ifeq (@LABLGNOMECANVAS@,yes) |
269 |
ifeq (@LABLGNOMECANVAS@,yes) |
265 |
cp -f $(ED_DIR)/editor.opt $(BINDIR)/graph-editor.opt |
270 |
mkdir -p $(DESTDIR)$(BINDIR) |
266 |
cp -f $(VIEWER_CMX) "$(DESTDIR)$(OCAMLLIB)" |
271 |
cp -f $(ED_DIR)/editor.opt $(DESTDIR)$(BINDIR)/graph-editor.opt |
267 |
cp -f $(VIEWER_DIR)/viewgraph.opt $(BINDIR)/graph-viewer.opt |
272 |
cp -f $(VIEWER_CMX) $(VIEWER_CMI) $(VIEWER_O) "$(DESTDIR)$(OCAMLLIB)" |
|
|
273 |
cp -f $(VIEWER_DIR)/viewgraph.opt $(DESTDIR)$(BINDIR)/graph-viewer.opt |
268 |
endif |
274 |
endif |
269 |
|
275 |
|
270 |
install-findlib: META |
276 |
install-findlib: META |