mirror of
https://github.com/valitydev/parse_trans.git
synced 2024-11-06 08:35:17 +00:00
31 lines
651 B
Makefile
31 lines
651 B
Makefile
SOURCES := $(wildcard *.erl)
|
|
HEADERS := $(wildcard *.hrl)
|
|
BEAMS := $(patsubst %.erl,%.beam,$(SOURCES))
|
|
|
|
.PHONY: all clean
|
|
|
|
all: $(BEAMS)
|
|
|
|
test: $(APPLICATION) $(TEST_BEAMS) ../util/run_test.beam
|
|
@echo Running tests
|
|
@erl -pa ../util/ -pa ../ebin/ -pa test/ -noinput -s run_test run
|
|
|
|
test_exprecs.beam: ../ebin/exprecs.beam test_exprecs.erl
|
|
@echo Compiling test_exprecs.erl
|
|
@erlc +debug_info -pa ../ebin -pa . -I ../include test_exprecs.erl
|
|
|
|
%.beam: %.erl $(HEADERS)
|
|
@echo Compiling $<
|
|
@erlc +debug_info -pa ../ebin -pa . -I ../include $<
|
|
|
|
test.beam: test_pt.beam
|
|
|
|
|
|
clean:
|
|
@echo Cleaning
|
|
@rm -f *.beam
|
|
@rm -f *~
|
|
@rm -f *.xfm
|
|
@rm -f *.xforms
|
|
|