Created
June 19, 2009 03:51
-
-
Save seth/132399 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.SUFFIXES: .erl .beam .yrl | |
%.beam: %.erl | |
erlc -W -o ebin $< | |
%.erl : %.yrl | |
erlc -W $< | |
vpath %.erl src | |
vpath %.beam ebin | |
vpath %.hrl src include | |
ERL = erl -boot start_clean | |
MODS = sherl_db base62 | |
BEAM = $(MODS:%=%.beam) | |
APP = sherl | |
TOP = $(realpath .) | |
EBIN_DIRS = $(TOP)/ebin | |
CT_DIR = $(TOP)/ct-results | |
all: compile | |
echo: | |
echo $(TOP) | |
compile: $(BEAM) | |
$(MODS) : $(BEAM) | |
test: $(MODS) $(CT_DIR) | |
run_test -pa $(EBIN_DIRS) -dir $(TOP) -logdir ct-results | |
$(CT_DIR): | |
mkdir -p $(CT_DIR) | |
shell: | |
$(ERL) -pa $(EBIN_DIRS) | |
clean: | |
@echo "removing:" | |
@rm -fv ebin/*.beam ebin/*.app src/*.beam erl_crash.dump | |
@rm -rf $(CT_DIR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment