2010-05-31 00:25:53 +09:00
|
|
|
########################################################################
|
|
|
|
# Permission is hereby granted, free of charge, to any person
|
|
|
|
# obtaining a copy of this file, to deal in the File without
|
|
|
|
# restriction, including without limitation the rights to use,
|
|
|
|
# copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
# sell copies of the File, and to permit persons to whom the
|
|
|
|
# File is furnished to do so, subject to the following condition:
|
|
|
|
#
|
|
|
|
# THE FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
|
|
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
|
|
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
|
|
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
|
|
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE FILE OR
|
|
|
|
# THE USE OR OTHER DEALINGS IN THE FILE.
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
# The standard OMakefile.
|
|
|
|
# You will usually need to modify this file for your project.
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
# Phony targets are scoped, so you probably want to declare them first.
|
|
|
|
#
|
|
|
|
|
2010-07-18 23:50:29 +09:00
|
|
|
.PHONY: all clean test edoc dialyzer #install
|
2010-05-31 00:25:53 +09:00
|
|
|
|
|
|
|
########################################################################
|
|
|
|
# Subdirectories.
|
|
|
|
# You may want to include some subdirectories in this project.
|
|
|
|
# If so, define the subdirectory targets and uncomment this section.
|
|
|
|
#
|
|
|
|
|
2010-07-18 23:40:25 +09:00
|
|
|
.DEFAULT: msgpack.beam
|
2010-05-31 00:25:53 +09:00
|
|
|
|
|
|
|
msgpack.beam: msgpack.erl
|
2010-07-18 23:40:25 +09:00
|
|
|
erlc -Wall +debug_info $<
|
2010-05-31 00:25:53 +09:00
|
|
|
|
2010-07-12 14:08:22 +02:00
|
|
|
msgpack.html: msgpack.erl
|
|
|
|
erl -noshell -run edoc_run file $<
|
|
|
|
|
2010-05-31 00:25:53 +09:00
|
|
|
test: msgpack.beam
|
2010-06-22 11:15:18 +09:00
|
|
|
erl -noshell -s msgpack test -s init stop
|
2010-05-31 00:25:53 +09:00
|
|
|
|
2010-07-18 23:40:25 +09:00
|
|
|
edoc: msgpack.erl
|
|
|
|
erl -noshell -eval 'ok=edoc:files(["msgpack.erl"], [{dir, "edoc"}]).' -s init stop
|
|
|
|
|
2010-07-18 23:50:29 +09:00
|
|
|
dialyzer: msgpack.erl
|
|
|
|
dialyzer --src $<
|
|
|
|
|
2010-05-31 00:25:53 +09:00
|
|
|
clean:
|
2010-07-12 14:08:22 +02:00
|
|
|
-rm -f *.beam *.html
|