Skip to content

Commit

Permalink
Staged installs support. (see #2850)
Browse files Browse the repository at this point in the history
without the haxelib symlink change
  • Loading branch information
Ilia Glazkov authored and andyli committed Aug 27, 2015
1 parent 4ad44f4 commit 5c99ce2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
.SUFFIXES : .ml .mli .cmo .cmi .cmx .mll .mly

INSTALL_DIR=/usr
INSTALL_DIR=$(DESTDIR)/usr
INSTALL_BIN_DIR=$(INSTALL_DIR)/bin
INSTALL_LIB_DIR=$(INSTALL_DIR)/lib/haxe

Expand Down Expand Up @@ -89,12 +89,12 @@ haxelib:
tools: haxelib

install:
-rm -f $(INSTALL_LIB_DIR)
-mkdir -p $(INSTALL_LIB_DIR)
rm -rf $(INSTALL_LIB_DIR)
mkdir -p $(INSTALL_BIN_DIR)
mkdir -p $(INSTALL_LIB_DIR)/lib
rm -rf $(INSTALL_LIB_DIR)/std
cp -rf std $(INSTALL_LIB_DIR)/std
cp -rf extra $(INSTALL_LIB_DIR)
-mkdir -p $(INSTALL_LIB_DIR)/lib
rm -f $(INSTALL_BIN_DIR)/haxe
cp haxe $(INSTALL_LIB_DIR)
ln -s $(INSTALL_LIB_DIR)/haxe $(INSTALL_BIN_DIR)/haxe
Expand Down

0 comments on commit 5c99ce2

Please sign in to comment.