public
Created

trimmed down makefile for creating embedded yaws app with external web app copied in, too.

  • Download Gist
Makefile
Makefile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.