~ubuntu-branches/ubuntu/saucy/rabbitmq-server/saucy-proposed

« back to all changes in this revision

Viewing changes to plugins-src/rabbitmq-erlang-client/Makefile

  • Committer: Package Import Robot
  • Author(s): Emile Joubert
  • Date: 2012-06-22 17:48:28 UTC
  • mfrom: (0.2.16) (0.1.28 sid)
  • Revision ID: package-import@ubuntu.com-20120622174828-1t2dts9myai6ogqo
Tags: 2.8.4-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
# The Original Code is RabbitMQ.
12
12
#
13
13
# The Initial Developer of the Original Code is VMware, Inc.
14
 
# Copyright (c) 2007-2011 VMware, Inc.  All rights reserved.
 
14
# Copyright (c) 2007-2012 VMware, Inc.  All rights reserved.
15
15
#
16
16
 
17
17
VERSION=0.0.0
26
26
INFILES=$(shell find . -name '*.app.in')
27
27
INTARGETS=$(patsubst %.in, %, $(INFILES))
28
28
 
 
29
WEB_URL=http://www.rabbitmq.com/
 
30
 
29
31
include common.mk
30
32
 
31
33
run_in_broker: compile $(BROKER_DEPS) $(EBIN_DIR)/$(PACKAGE).app
39
41
 
40
42
%.app: %.app.in $(SOURCES) $(BROKER_DIR)/generate_app
41
43
        escript  $(BROKER_DIR)/generate_app $< $@ $(SOURCE_DIR)
42
 
        sed -i.save 's/%%VSN%%/$(VERSION)/' $@ && rm $@.save
 
44
        sed 's/%%VSN%%/$(VERSION)/' $@ > $@.tmp && mv $@.tmp $@
43
45
 
44
46
###############################################################################
45
47
##  Dialyzer
65
67
        sed -e 's:%%VERSION%%:$(VERSION):g' < $< > $@
66
68
 
67
69
$(DOC_DIR)/index.html: $(DEPS_DIR)/$(COMMON_PACKAGE_DIR) $(DOC_DIR)/overview.edoc $(SOURCES)
68
 
        $(LIBS_PATH) erl -noshell -eval 'edoc:application(amqp_client, ".", [{preprocess, true}])' -run init stop
 
70
        $(LIBS_PATH) erl -noshell -eval 'edoc:application(amqp_client, ".", [{preprocess, true}, {macros, [{edoc, true}]}])' -run init stop
69
71
 
70
72
###############################################################################
71
73
##  Testing
103
105
source_tarball: $(DIST_DIR)/$(COMMON_PACKAGE_EZ) $(EBIN_DIR)/$(PACKAGE).app | $(DIST_DIR)
104
106
        mkdir -p $(DIST_DIR)/$(SOURCE_PACKAGE_DIR)/$(DIST_DIR)
105
107
        $(COPY) $(DIST_DIR)/$(COMMON_PACKAGE_EZ) $(DIST_DIR)/$(SOURCE_PACKAGE_DIR)/$(DIST_DIR)/
106
 
        $(COPY) README $(DIST_DIR)/$(SOURCE_PACKAGE_DIR)/
 
108
        $(COPY) README.in $(DIST_DIR)/$(SOURCE_PACKAGE_DIR)/README
 
109
        elinks -dump -no-references -no-numbering $(WEB_URL)build-erlang-client.html >> $(DIST_DIR)/$(SOURCE_PACKAGE_DIR)/README
107
110
        $(COPY) common.mk $(DIST_DIR)/$(SOURCE_PACKAGE_DIR)/
108
111
        $(COPY) test.mk $(DIST_DIR)/$(SOURCE_PACKAGE_DIR)/
109
112
        sed 's/%%VSN%%/$(VERSION)/' Makefile.in > $(DIST_DIR)/$(SOURCE_PACKAGE_DIR)/Makefile