-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (31 loc) · 771 Bytes
/
Makefile
File metadata and controls
39 lines (31 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
BRANCH=$(shell git branch | grep \* | cut -d\ -f2)
help:
@echo "Some help is needed..."
clean:
mvn clean
jar:
mvn package
deploy:
pom ; if [ $$? -eq 1 ] ; then exit 1 ; fi
mvn javadoc:jar source:jar deploy
snapshot:
issnapshot ; if [ $$? -eq 1 ] ; then exit 1 ; fi
mvn javadoc:jar source:jar deploy
docs:
mvn javadoc:javadoc
site:
git stash
mvn javadoc:javadoc
git checkout gh-pages
rm -f*.html
if [ -e *.ico ] ; then rm *.ico ; fi
if [ -e *.gif ] ; then rm *.gif ; fi
rm -rf org resources
git commit -a -m "Removed old files from gh-pages."
git push origin gh-pages
cp -r target/site/apidocs/* .
git add *.html *.git *.ico org resources
git commit -a -m "Added new files."
git push origin gh-pages
git checkout $(BRANCH)
git stash apply