Skip to content

Instantly share code, notes, and snippets.

@ToddG
Created December 15, 2012 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ToddG/4296427 to your computer and use it in GitHub Desktop.
Save ToddG/4296427 to your computer and use it in GitHub Desktop.
trimmed down makefile for creating embedded yaws app with external web app copied in, too.
PROJECT = embedded_yaws
REBAR = rebar
all: clean webapp deps compile
compile:
rebar get-deps compile
clean:
rebar clean
rm -rf webapp
rel:
rebar generate
run: compile
erl -pa ebin deps/*/ebin -s launch \
-eval "io:format(\"Point your browser at http://localhost:8080/webappname/app/index.html~n\")."
webapp:
mkdir -p webapp/webappname
cp -rv ../../../webapp/src/main/webapp/* webapp/webappname/.
deps:
@$(REBAR) get-deps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment