8000 Makefile: Allow to override `ant` location and add flags · panchenko/rabbitmq-java-client@57ecae5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 57ecae5

Browse files
committed
Makefile: Allow to override ant location and add flags
1 parent 9d4af42 commit 57ecae5

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Makefile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ AMQP_CODEGEN_DIR=$(shell fgrep sibling.codegen.dir build.properties | sed -e 's:
1313

1414
MAVEN_RSYNC_DESTINATION=maven@195.224.125.254:/home/maven/rabbitmq-java-client/
1515

16+
ANT ?= ant
17+
ANT_FLAGS ?=
18+
1619
all:
17-
ant build
20+
$(ANT) $(ANT_FLAGS) build
1821

1922
clean:
20-
ant clean
23+
$(ANT) $(ANT_FLAGS) clean
2124

2225
distclean: clean
2326
make -C $(AMQP_CODEGEN_DIR) clean
@@ -27,17 +30,17 @@ dist: distclean srcdist dist_all maven-bundle
2730
dist_all: dist1.5 javadoc-archive
2831

2932
jar:
30-
ant jar
33+
$(ANT) $(ANT_FLAGS) jar
3134

3235
maven-bundle:
33-
ant -Dimpl.version=$(VERSION) maven-bundle
36+
$(ANT) $(ANT_FLAGS) -Dimpl.version=$(VERSION) maven-bundle
3437

3538
dist1.5:
36-
ant -Ddist.out=build/$(PACKAGE_NAME)-bin-$(VERSION) -Dimpl.version=$(VERSION) dist
39+
$(ANT) $(ANT_FLAGS) -Ddist.out=build/$(PACKAGE_NAME)-bin-$(VERSION) -Dimpl.version=$(VERSION) dist
3740
$(MAKE) post-dist TARBALL_NAME=$(PACKAGE_NAME)-bin-$(VERSION)
3841

3942
javadoc-archive:
40-
ant javadoc
43+
$(ANT) $(ANT_FLAGS) javadoc
4144
cp -Rp build/doc/api build/$(JAVADOC_ARCHIVE)
4245
(cd build; tar -zcf $(JAVADOC_ARCHIVE).tar.gz $(JAVADOC_ARCHIVE))
4346
(cd build; zip -q -r $(JAVADOC_ARCHIVE).zip $(JAVADOC_ARCHIVE))

0 commit comments

Comments
 (0)
0