Added 'tree' target, building linux-tree package.

svn path=/branches/kernel-image-2.6.11/; revision=3260
This commit is contained in:
Jurij Smakov 2005-05-28 23:55:38 +00:00
parent 44536b2385
commit bf30c0d1de
1 changed files with 22 additions and 7 deletions

29
debian/rules vendored
View File

@ -60,31 +60,46 @@ unpatch:
fi
rm -f debian/patch-stamp
#
# Since we do not have separate build/install targets for the
# source, the stamp magic is somewhat redundant. At least, it
# will prevent rebuilding the package from an uncleaned tmpdir.
# linux-source package
#
spkg := linux-source-$(version)
sdir := debian/$(spkg)/usr/src
tpkg := linux-tree-$(version)-$(ltver)
files = $(filter-out debian, $(shell echo *))
source: debian/source-stamp
debian/source-stamp: debian/patch-stamp
dh_testdir
dh_testroot
dh_installdirs -p$(spkg) /usr/share/doc /usr/src
dh_installdirs -p$(spkg) /usr/src
# Link the files and create a tarball in correct location
mkdir $(spkg)
cp -al $(files) $(spkg)
tar -cjf $(sdir)/$(spkg).tar.bz2 $(spkg)
rm -rf $(spkg)
dh_fixperms -p$(spkg)
dh_installdocs -p$(spkg) README debian/README.Debian
dh_installdocs -p$(spkg) README
dh_installchangelogs -p$(spkg)
dh_compress -p$(spkg)
dh_fixperms -p$(spkg)
dh_installdeb -p$(spkg)
dh_gencontrol -p$(spkg)
dh_builddeb -p$(spkg)
touch debian/source-stamp
#
# linux-tree package
#
tpkg := linux-tree-$(version)
tree: debian/tree-stamp
debian/tree-stamp:
dh_testdir
dh_testroot
dh_installdirs -p$(tpkg)
dh_installdocs -p$(tpkg)
dh_installchangelogs -p$(tpkg)
dh_compress -p$(tpkg)
dh_fixperms -p$(tpkg)
dh_installdeb -p$(tpkg)
dh_gencontrol -p$(tpkg)
dh_builddeb -p$(tpkg)
touch debian/tree-stamp
unpack: debian/linux-source-$(version).tar.bz2 unpack-stamp
unpack-stamp: