Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[build] fix install when no native code is available

  • Loading branch information...
commit 2e9698e3907c37e0f2d7172034dbbe1a61e00d03 1 parent ecb59f9
@samoht samoht authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 Makefile
  2. BIN  ocp-build/ocp-build.boot
View
8 Makefile
@@ -1,7 +1,7 @@
include Makefile.config
LOCAL_OCPBUILD=./ocp-build/ocp-build
-OCPBUILD ?= $(LOCAL_OCPBUILD) # /usr/local/bin/ocp-build
+OCPBUILD ?= $(LOCAL_OCPBUILD)
SRC_EXT=src_ext
TARGETS = opam opam-mk-repo
@@ -56,7 +56,11 @@ tests-git:
$(MAKE) -C tests git
%-install:
- cp _obuild/$*/$*.asm $(prefix)/bin/$*
+ if [ -e _obuild/$*/$*.asm ]; then \
+ cp _obuild/$*/$*.asm $(prefix)/bin/$*; \
+ else \
+ cp _obuild/$*/$*.byte $(prefix)/bin/$*; \
+ fi
META: META.in
sed 's/@VERSION@/$(version)/g' < $< > $@
View
BIN  ocp-build/ocp-build.boot
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.