Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (13 sloc) 302 Bytes
ERL := erl
ERLC := erlc
ERLC_FLAGS := -Wall +native
SRC := $(wildcard src/*.erl)
BEAMS := $(SRC:src/%.erl=ebin/%.beam)
compile: $(BEAMS)
@cp src/*.app ebin/
clean:
rm -f ebin/*.{app,beam}
.SUFFIXES: .erl .beam
.PHONY: clean
ebin/%.beam : src/%.erl
$(ERLC) $(ERLC_FLAGS) -o $(dir $@) $<