Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modify Makefile and .app file to make them suitable for rebar

  • Loading branch information...
commit 25d164a5afca6ca1e8fd469e8597569650b811bb 1 parent 29a5cfb
@jcomellas jcomellas authored jcomellas committed
Showing with 33 additions and 22 deletions.
  1. +30 −19 Makefile
  2. +3 −3 src/erlsom.app.src
View
49 Makefile
@@ -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
-
View
6 src/erlsom.app.src
@@ -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]}]}.
Please sign in to comment.
Something went wrong with that request. Please try again.