Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Commit

Permalink
modified: Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
childe committed Apr 22, 2016
1 parent 8e27126 commit f481f6b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,36 @@ build:
cp example.yml $(RELEASEPATH)
cp LICENSE $(RELEASEPATH)
cp bin/hangout $(RELEASEPATH)/bin
sed -i "" 's/\<elasticsearch-version\>[0-9.]*/<elasticsearch-version\>$(ESVERSION)/' pom.xml
git rev-parse --short HEAD > $(RELEASEPATH)/VERSION
mvn clean package
mvn dependency:copy-dependencies
cp target/hangout-$(VERSION).jar $(RELEASEPATH)/lib
cp target/dependency/* $(RELEASEPATH)/vender
sed -i '' 's/X.X.X/$(VERSION)/' $(RELEASEPATH)/bin/hangout
tar -cf release/$(FULLVERSION).tar -C release $(FULLVERSION)
git reset --hard

test:
$(MAKE) build FULLVERSION=hangout-test GITBRANCH=$@
$(MAKE) build FULLVERSION=hangout-test GITBRANCH=$@ ESVERSION=2.2.0

dev:
$(MAKE) build FULLVERSION=hangout-dev GITBRANCH=$@
$(MAKE) build FULLVERSION=hangout-dev GITBRANCH=$@ ESVERSION=2.2.0

2.2:
$(MAKE) build FULLVERSION=hangout-$(VERSION)-ES$@ GITBRANCH=$@
$(MAKE) build FULLVERSION=hangout-$(VERSION)-ES$@ GITBRANCH=es2.X ESVERSION=$@

2.1:
$(MAKE) build FULLVERSION=hangout-$(VERSION)-ES$@ GITBRANCH=$@
$(MAKE) build FULLVERSION=hangout-$(VERSION)-ES$@ GITBRANCH=es2.X ESVERSION=$@

2.0:
$(MAKE) build FULLVERSION=hangout-$(VERSION)-ES$@ GITBRANCH=$@
$(MAKE) build FULLVERSION=hangout-$(VERSION)-ES$@ GITBRANCH=es2.X ESVERSION=$@

1.7:
$(MAKE) build FULLVERSION=hangout-$(VERSION)-ES$@ GITBRANCH=$@
$(MAKE) build FULLVERSION=hangout-$(VERSION)-ES$@ GITBRANCH=es1.X ESVERSION=$@

1.6:
$(MAKE) build FULLVERSION=hangout-$(VERSION)-ES$@ GITBRANCH=$@
$(MAKE) build FULLVERSION=hangout-$(VERSION)-ES$@ GITBRANCH=es1.X ESVERSION=$@

1.5:
$(MAKE) build FULLVERSION=hangout-$(VERSION)-ES$@ GITBRANCH=$@
$(MAKE) build FULLVERSION=hangout-$(VERSION)-ES$@ GITBRANCH=es1.X ESVERSION=$@

0 comments on commit f481f6b

Please sign in to comment.