source: hadoop-0.19.1/Makefile @ 219

Last change on this file since 219 was 65, checked in by jazz, 16 years ago
  • 更新 0.19.1 的打包規則
    • 用 dch -i 修改 debian/changelog
    • 暫時不用 GPG Key 打包
    • Makefile 新增範例
File size: 1.0 KB
RevLine 
[65]1VERSION = 0.19.1
[52]2all: help
3
4deb:
[65]5  @dpkg-buildpackage -rfakeroot -aamd64
6  @dpkg-buildpackage -rfakeroot -ai386
[52]7
8clean:
9  @debian/rules clean
10
11source: 
[65]12  @wget http://ftp.twaren.net/Unix/Web/apache/hadoop/core/hadoop-${VERSION}/hadoop-${VERSION}.tar.gz
13  @tar zxvf hadoop-${VERSION}.tar.gz -C ..
[52]14  @rm conf/hadoop-env.sh 
15  @rm conf/hadoop-site.xml
16  @chmod a+x `find . -name "configure"`
17
18update:
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."
[65]30  @echo " "
31  @echo "Example:"
32  @echo "$$ make source; make deb; make clean"
Note: See TracBrowser for help on using the repository browser.