diff options
Diffstat (limited to 'components/dlink_sms/Makefile')
-rw-r--r-- | components/dlink_sms/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/components/dlink_sms/Makefile b/components/dlink_sms/Makefile new file mode 100644 index 0000000..a67e511 --- /dev/null +++ b/components/dlink_sms/Makefile @@ -0,0 +1,37 @@ +.PHONY: all deps compile setup clean doc + + +SETUP_GEN=$(shell ./find_setup_gen.sh) + +all: deps compile + +deps: + rebar get-deps + +compile: + rebar compile + +recomp: + rebar compile skip_deps=true + +setup: + ERL_LIBS=$(PWD)/deps:$(ERL_LIBS):$(PWD) \ + $(SETUP_GEN) $(NAME) priv/setup.config setup + +target: + ERL_LIBS=$(PWD)/deps:$(ERL_LIBS) \ + $(SETUP_GEN) $(NAME) priv/setup.config setup -pz $(PWD)/ebin \ + -target rel -vsn 0.1 + +run: setup + erl -boot setup/start -config setup/sys + +doc: + REBAR_DOC=1 rebar skip_deps=true get-deps doc + +clean: + rebar clean + + + + |