Permalink
Browse files

[build] fix install when no native code is available

  • Loading branch information...
1 parent ecb59f9 commit 2e9698e3907c37e0f2d7172034dbbe1a61e00d03 @samoht samoht committed Oct 10, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 Makefile
  2. BIN ocp-build/ocp-build.boot
View
@@ -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' < $< > $@
Binary file not shown.

0 comments on commit 2e9698e

Please sign in to comment.