forked from willemdj/erlsom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify Makefile and .app file to make them suitable for rebar
- Loading branch information
Showing
2 changed files
with
33 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,42 @@ | ||
APPLICATION := erlsom | ||
|
||
SUBDIRS = src | ||
include ./include.mk | ||
include vsn.mk | ||
ERL := erl | ||
EPATH := -pa ebin | ||
TEST_EPATH := -pa .eunit | ||
|
||
DIALYZER=dialyzer | ||
DIALYZER_OPTS=-Wno_return -Wrace_conditions -Wunderspecs -Wbehaviours | ||
PLT_FILE=.erlsom_plt | ||
APPS=kernel stdlib | ||
|
||
all debug clean: | ||
@set -e ; \ | ||
for d in $(SUBDIRS) ; do \ | ||
if [ -f $$d/Makefile ]; then ( cd $$d && $(MAKE) $@ ) || exit 1 ; fi ; \ | ||
done | ||
.PHONY: all clean test | ||
|
||
install: all | ||
set -e ; \ | ||
for d in $(SUBDIRS) ; do \ | ||
if [ -f $$d/Makefile ]; then ( cd $$d && $(MAKE) $@ ) || exit 1 ; fi ; \ | ||
done; \ | ||
echo "** beam files went into $(DESTDIR)/$(APPDIR)/ebin" | ||
all: compile | ||
|
||
compile: | ||
@./rebar compile | ||
|
||
doc: | ||
@./rebar doc | ||
|
||
docs: | ||
( cd doc && $(MAKE) docs ) | ||
clean: | ||
@./rebar clean | ||
|
||
conf_clean: | ||
-rm include.mk config.cache config.status config.log 2> /dev/null | ||
build-plt: compile | ||
@./rebar build-plt | ||
|
||
check-plt: compile | ||
@./rebar check-plt | ||
|
||
dialyze: | ||
@./rebar dialyze | ||
|
||
eunit: | ||
@./rebar eunit | ||
|
||
shell: compile | ||
$(ERL) -sname $(APPLICATION) $(EPATH) | ||
|
||
touch: | ||
find . -name '*' -print | xargs touch -m | ||
find . -name '*.erl' -print | xargs touch -m | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{application,erlsom, | ||
[{description,"erlsom XSD parser"}, | ||
{vsn,"%VSN%"}, | ||
{modules,[%MODULES%]}, | ||
{vsn,"1.2.1"}, | ||
{modules,[]}, | ||
{registered, []}, | ||
{env, []}, | ||
{applications,[kernel,stdlib]}]}. | ||
{applications,[kernel,stdlib,inets]}]}. |