VERSION = 0.19.1 all: help deb: @dpkg-buildpackage -rfakeroot -aamd64 @dpkg-buildpackage -rfakeroot -ai386 clean: @debian/rules clean source: @wget http://ftp.twaren.net/Unix/Web/apache/hadoop/core/hadoop-${VERSION}/hadoop-${VERSION}.tar.gz @tar zxvf hadoop-${VERSION}.tar.gz -C .. @rm conf/hadoop-env.sh @rm conf/hadoop-site.xml @chmod a+x `find . -name "configure"` update: @scp ../hadoop*_amd64.deb www.classcloud.org:/var/www/hadoop/dists/unstable/main/binary-amd64/. @scp ../hadoop*_i386.deb www.classcloud.org:/var/www/hadoop/dists/unstable/main/binary-i386/. @ssh www.classcloud.org /var/www/hadoop/update-repository.sh help: @echo "Usage:" @echo "make deb - Build Debian Package." @echo "make clean - Clean up Debian Package temparate files." @echo "make source - download source tarball from hadoop mirror site." @echo "make update - upload deb packages to classcloud.org." @echo "make help - show Makefile options." @echo " " @echo "Example:" @echo "$$ make source; make deb; make clean"