Created
September 26, 2011 16:04
-
-
Save AlexanderWingard/1242590 to your computer and use it in GitHub Desktop.
Build OTP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ME=`readlink -f $0` | |
ROOT=`dirname $ME` | |
PREFIX=$ROOT/target | |
ERL_TOP=$ROOT/otp | |
cd $ERL_TOP | |
./otp_build autoconf | |
./configure --prefix=$PREFIX | |
gmake | |
cd $ROOT |
Döp den typ till Makefile.whatever och kör make -f Makefile.whatever...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ROOT :=$(dir $ (shell pwd))
PREFIX := $(ROOT)/target
.PHONY: all
all: bin/erl
bin/erl: Makefile
gmake all
Makefile: Makefile.in configure
./configure --prefix=$(PREFIX)
configure: configure.in
./otp_build autoconf