Skip to content

Commit 3837f33

Browse files
committed
Fixed ocp-build arguments
1 parent bf66a8c commit 3837f33

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ byte = _obuild/ocp-indent/ocp-indent.byte
44
native = _obuild/ocp-indent/ocp-indent.asm
55
manpage = man/man1/ocp-indent.1
66

7-
OCPBUILD_ARGS = -install-lib $(prefix)/lib
7+
OCPBUILD_ARGS =
88

99
.PHONY: $(native) $(byte)
1010

@@ -55,21 +55,20 @@ install: ocp-indent $(manpage)
5555
@echo "to your .emacs :"
5656
@echo
5757
@if [ "$(prefix)" != "/usr" ]; then \
58-
echo " (add-to-list 'load-path \"$(datarootdir)/emacs/site-lisp\")"; \
58+
echo " (add-to-list 'load-path \"$(datarootdir)/emacs/site-lisp\")"; \
5959
fi
6060
@echo " (require 'ocp-indent)"
6161
@echo
6262
@echo "Vim users are welcome to add the following to their .vimrc :"
6363
@echo
64-
@echo " ocaml source $(datarootdir)/vim/syntax/ocp-indent.vim"
64+
@echo " ocaml source $(datarootdir)/vim/syntax/ocp-indent.vim"
6565
@echo
6666

6767
.PHONY: uninstall
6868
uninstall:
69-
rm $(mandir)/man1/$(notdir $(manpage))
7069
rm $(datarootdir)/emacs/site-lisp/ocp-indent.el
7170
rm $(datarootdir)/vim/syntax/ocp-indent.vim
72-
ocp-build uninstall $(OCPBUILD_ARGS) ocp-indent
71+
opam-installer --uninstall --prefix $(prefix) ocp-indent.install
7372

7473
.PHONY: test
7574
test: ocp-indent
@@ -89,4 +88,4 @@ ocp-build.root: version.ocp
8988
echo "Error: you need ocp-build >= 1.99." >&2;\
9089
exit 1;\
9190
fi
92-
ocp-build -init -scan $(OCPBUILD_ARGS)
91+
ocp-build -init $(OCPBUILD_ARGS)

0 commit comments

Comments
 (0)