Skip to content

Commit

Permalink
Update the overlay Makefile to be able to compile when running in non…
Browse files Browse the repository at this point in the history
…-embedded Erlang mode.
  • Loading branch information
rustyio committed Dec 20, 2010
1 parent 1ea1c26 commit 323d076
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rel/overlay/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
all:
@(cd site; ../erts-*/bin/erl -make)
# Compile using embedded Erlang if it exists.
# Otherwise try the system Erlang.
@(cd site; [ -e ../erts-*/bin/erl ] && ../erts-*/bin/erl -make; echo)
@(cd site; [ -e ../erts-*/bin/erl ] || erl -pa ../lib/*/ebin -make; echo)

clean:
@(cd site; rm -rf ebin/*.beam)
@(cd site; rm -rf ebin/*.beam)

0 comments on commit 323d076

Please sign in to comment.