Skip to content

Instantly share code, notes, and snippets.

@AlexanderWingard
Created September 26, 2011 16:04
Show Gist options
  • Save AlexanderWingard/1242590 to your computer and use it in GitHub Desktop.
Save AlexanderWingard/1242590 to your computer and use it in GitHub Desktop.
Build OTP
#!/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
@oscarh
Copy link

oscarh commented Sep 27, 2011

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

@oscarh
Copy link

oscarh commented Sep 27, 2011

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