Skip to content

Commit 7d4f803

Browse files
committed
Fix for installation issues
drop weird dependency camlp4lib
1 parent 3f12208 commit 7d4f803

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ build: _obuild
22
ocp-build build batsh
33
ln -sf _obuild/batsh/batsh.asm batsh
44

5-
LIBDIR=$(CAML_LD_LIBRARY_PATH)/../batsh
5+
LIBDIR=$(CAML_LD_LIBRARY_PATH)/..
6+
BATSHDIR=$(LIBDIR)/batsh
67

78
install: build
8-
ocp-build install -install-lib "$(LIBDIR)"
9+
ocp-build install batsh-lib batsh -install-lib "$(LIBDIR)"
10+
# This is an unly wordaround for fixing the generated META file
11+
sed -i 's/ camlp4lib//g' "$(LIBDIR)/META.batsh"
12+
sed -i 's/ camlp4lib//g' "$(LIBDIR)/META.batsh-lib"
913

1014
uninstall:
11-
ocp-build uninstall -install-lib "$(LIBDIR)"
15+
ocp-build uninstall
1216

1317
test: build
1418
ocp-build build test

src/batsh.ocp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ begin library "batsh-lib"
3030
"winbat_transform.ml"
3131
]
3232
requires = ["core_kernel" "dlist" "sexplib-syntax"]
33+
bundle = [ "batsh" ]
3334
end
3435

3536
begin program "batsh"
@@ -73,7 +74,7 @@ begin
7374
dirname = ["%{type_conv_DST_DIR}%"]
7475
begin library "pa_type_conv"
7576
is_before = ["pa_macro"]
76-
requires = ["camlp4lib" "camlp4-pa-o" "camlp4-pa-op"]
77+
requires = ["camlp4-pa-o" "camlp4-pa-op"]
7778
files = ["pa_type_conv.ml"]
7879
end
7980
begin syntax "pa_type_conv.syntax"

0 commit comments

Comments
 (0)