Skip to content

Instantly share code, notes, and snippets.

@baya
Created September 23, 2014 06:38
Show Gist options
  • Save baya/7c7b7e3ec30ec2c8c298 to your computer and use it in GitHub Desktop.
Save baya/7c7b7e3ec30ec2c8c298 to your computer and use it in GitHub Desktop.
.SUFFIXES: .erl .beam
.erl .beam:
erlc -W $<
ERL = erl -boot start_clean
MODS = module1 module2 module3
all: compile
${ERl} -pa '/home/joe/.../this/dir' -s module1 start
compile: ${MODS:%=%:.beam}
clean:
rm -rf *.beam erl_crash.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment