source: hadoop-0.18.3/Makefile @ 217

Last change on this file since 217 was 52, checked in by jazz, 16 years ago
  • 新增簡化編譯用的 Makefile
File size: 1019 bytes
Line 
1all: help
2
3deb:
4  @dpkg-buildpackage -rfakeroot -k0x570712BF -aamd64
5  @dpkg-buildpackage -rfakeroot -k0x570712BF -ai386
6
7clean:
8  @debian/rules clean
9
10source: 
11  @wget http://ftp.twaren.net/Unix/Web/apache/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz
12  @tar zxvf hadoop-0.18.3.tar.gz -C ..
13  @rm conf/hadoop-env.sh 
14  @rm conf/hadoop-site.xml
15  @chmod a+x `find . -name "configure"`
16
17update:
18  @scp GPG-KEY-JAZZWANG www.classcloud.org:/var/www/hadoop/.
19  @scp ../hadoop*_amd64.deb www.classcloud.org:/var/www/hadoop/dists/unstable/main/binary-amd64/.
20  @scp ../hadoop*_i386.deb www.classcloud.org:/var/www/hadoop/dists/unstable/main/binary-i386/.
21  @ssh www.classcloud.org /var/www/hadoop/update-repository.sh
22
23help:
24  @echo "Usage:"
25  @echo "make deb     - Build Debian Package."
26  @echo "make clean   - Clean up Debian Package temparate files."
27  @echo "make source  - download source tarball from hadoop mirror site."
28  @echo "make update  - upload deb packages to classcloud.org."
29  @echo "make help    - show Makefile options."
Note: See TracBrowser for help on using the repository browser.