-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 870 Bytes
/
Makefile
File metadata and controls
42 lines (33 loc) · 870 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
39
40
41
BRANCH=$(shell git branch | grep \* | cut -d\ -f2)
GROOVYDOC=src/test/resources/lappsdoc
help:
@echo "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:
if [ -e target/apidocs ] ; then rm -rf target/apidocs ; fi
$(GROOVYDOC) "Lappsgrid Serialization"
site:
git stash
if [ -e target/apidocs ] ; then rm -rf target/apidocs ; fi
$(GROOVYDOC) "Lappsgrid Serialization"
git checkout gh-pages
rm *.html *.ico *.gif
rm -rf org
git commit -a -m "Removed old files."
cp -r target/apidocs/* .
git add *.html *.ico *.gif org
git commit -a -m "Updated gh-pages."
git push origin gh-pages
git checkout $(BRANCH)
git stash apply
test:
echo "Branch is $(BRANCH)"