Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Modify Makefile and .app file to make them suitable for rebar
  • Loading branch information
jcomellas committed Feb 16, 2011
1 parent 29a5cfb commit 25d164a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 22 deletions.
49 changes: 30 additions & 19 deletions Makefile
@@ -1,31 +1,42 @@
APPLICATION := erlsom


SUBDIRS = src ERL := erl
include ./include.mk EPATH := -pa ebin
include vsn.mk TEST_EPATH := -pa .eunit


DIALYZER=dialyzer
DIALYZER_OPTS=-Wno_return -Wrace_conditions -Wunderspecs -Wbehaviours
PLT_FILE=.erlsom_plt
APPS=kernel stdlib


all debug clean: .PHONY: all clean test
@set -e ; \
for d in $(SUBDIRS) ; do \
if [ -f $$d/Makefile ]; then ( cd $$d && $(MAKE) $@ ) || exit 1 ; fi ; \
done


install: all all: compile
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"


compile:
@./rebar compile


doc:
@./rebar doc


docs: clean:
( cd doc && $(MAKE) docs ) @./rebar clean


conf_clean: build-plt: compile
-rm include.mk config.cache config.status config.log 2> /dev/null @./rebar build-plt

check-plt: compile
@./rebar check-plt

dialyze:
@./rebar dialyze

eunit:
@./rebar eunit

shell: compile
$(ERL) -sname $(APPLICATION) $(EPATH)


touch: touch:
find . -name '*' -print | xargs touch -m find . -name '*' -print | xargs touch -m
find . -name '*.erl' -print | xargs touch -m find . -name '*.erl' -print | xargs touch -m

6 changes: 3 additions & 3 deletions src/erlsom.app.src
@@ -1,7 +1,7 @@
{application,erlsom, {application,erlsom,
[{description,"erlsom XSD parser"}, [{description,"erlsom XSD parser"},
{vsn,"%VSN%"}, {vsn,"1.2.1"},
{modules,[%MODULES%]}, {modules,[]},
{registered, []}, {registered, []},
{env, []}, {env, []},
{applications,[kernel,stdlib]}]}. {applications,[kernel,stdlib,inets]}]}.

0 comments on commit 25d164a

Please sign in to comment.