diff --git a/debian/rules b/debian/rules index 7d0c96508..6f4815f5f 100755 --- a/debian/rules +++ b/debian/rules @@ -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: