Skip to content

Commit

Permalink
Adding Makefile to slowly chip away at build process.
Browse files Browse the repository at this point in the history
  • Loading branch information
noahcampbell committed Nov 19, 2010
1 parent 855ec95 commit e506ef3
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 20 deletions.
43 changes: 43 additions & 0 deletions Makefile
@@ -0,0 +1,43 @@
VERSION=1.0.0
RELEASE=0

GRAILSVERS=1.2.0
JETTYVERS=6.1.21

core = core/target/rundeck-core-$(VERSION).jar
war = rundeckapp/target/rundeck-$(VERSION).war
launcher = rundeckapp/target/rundeck-launcher-$(VERSION).jar

.PHONY: clean, rundeck

rundeck: $(core) $(war) $(launcher)
@echo $(VERSION)-$(RELEASE)

rpm: $(war)
@echo rpmbuild

$(core):
./build.sh rundeck_core

$(war):
./build.sh rundeckapp

$(launcher):
./build.sh rundeckapp

clean:
echo "Cleaning..."
#clean localrepo of build artifacts
rm -r ${BUILD_ROOT}/localrepo/rundeck*

#remove rundeckapp lib dir which may contain previously built jars
rm ${BUILD_ROOT}/rundeckapp/lib/rundeck*.jar

#clean build target dirs
rm -rf $BASEDIR/core/target
rm -r $BASEDIR/rundeckapp/target

#clean intermediate maven repo dirs of build artifacts
rm -r $BASEDIR/maven/repository/rundeck*

echo "Cleaned local build artifacts and targets."
20 changes: 0 additions & 20 deletions build.sh
Expand Up @@ -237,26 +237,6 @@ export PATH=$MYPATH
export GRAILS_HOME=
}

do_clean(){

echo "Cleaning..."
#clean localrepo of build artifacts
rm -r $BUILD_ROOT/localrepo/rundeck*


#remove rundeckapp lib dir which may contain previously built jars
rm $BUILD_ROOT/rundeckapp/lib/rundeck*.jar

#clean build target dirs
rm -rf $BASEDIR/core/target
rm -r $BASEDIR/rundeckapp/target

#clean intermediate maven repo dirs of build artifacts
rm -r $BASEDIR/maven/repository/rundeck*

echo "Cleaned local build artifacts and targets."
}

do_release_increment(){
RELNUM=$(($RELNUM + 1))

Expand Down

0 comments on commit e506ef3

Please sign in to comment.