Makefile rearrangement.
svn path=/branches/kernel-image-2.6.11/; revision=3261
This commit is contained in:
parent
bf30c0d1de
commit
b430e6cb77
|
@ -1,16 +0,0 @@
|
|||
#
|
||||
# This is the Makefile for the binary linux-source
|
||||
# package. It must be built first, because it makes
|
||||
# the linux-source-$(version).tar.bz2 available.
|
||||
#
|
||||
binary: debian/control
|
||||
dh_installdirs
|
||||
dh_fixperms -plinux-source-$(version)
|
||||
dh_installdocs -plinux-source-$(version) debian/README.Debian
|
||||
dh_installchangelogs -plinux-source-$(version)
|
||||
dh_compress -plinux-source-$(version)
|
||||
dh_installdeb -plinux-source-$(version)
|
||||
dh_gencontrol -plinux-source-$(version)
|
||||
dh_builddeb -plinux-source-$(version)
|
||||
|
||||
PHONY: binary
|
|
@ -35,6 +35,13 @@ endif
|
|||
ifeq (,$(subarchs))
|
||||
subarchs := none
|
||||
endif
|
||||
#
|
||||
# The following definition gets the list of relevant files in the top-level
|
||||
# directory. At this point we cannot verify that we are in top-level dir
|
||||
# (we probably are), so it should be referenced only in the targets which
|
||||
# run dh_testdir in the beginning.
|
||||
#
|
||||
source_files = $(filter-out debian linux-source-$(version), $(shell echo *))
|
||||
|
||||
export version abiname ltver kbuildver flavours
|
||||
|
||||
|
@ -64,7 +71,6 @@ unpatch:
|
|||
#
|
||||
spkg := linux-source-$(version)
|
||||
sdir := debian/$(spkg)/usr/src
|
||||
files = $(filter-out debian, $(shell echo *))
|
||||
source: debian/source-stamp
|
||||
debian/source-stamp: debian/patch-stamp
|
||||
dh_testdir
|
||||
|
@ -72,7 +78,7 @@ debian/source-stamp: debian/patch-stamp
|
|||
dh_installdirs -p$(spkg) /usr/src
|
||||
# Link the files and create a tarball in correct location
|
||||
mkdir $(spkg)
|
||||
cp -al $(files) $(spkg)
|
||||
cp -al $(source_files) $(spkg)
|
||||
tar -cjf $(sdir)/$(spkg).tar.bz2 $(spkg)
|
||||
rm -rf $(spkg)
|
||||
dh_installdocs -p$(spkg) README
|
||||
|
@ -106,7 +112,7 @@ unpack-stamp:
|
|||
dh_testdir
|
||||
for i in $(subarchs); do \
|
||||
cd debian; \
|
||||
$(MAKE) -f Makefile.subarch subarch=$${i} unpack; \
|
||||
$(MAKE) subarch=$${i} source_files='$(source_files)' unpack; \
|
||||
done
|
||||
ln -s $$(command -v touch) debian/bin/touch.orig
|
||||
touch unpack-stamp
|
||||
|
@ -116,7 +122,7 @@ build-stamp: unpack-stamp
|
|||
dh_testdir
|
||||
for i in $(subarchs); do \
|
||||
cd debian; \
|
||||
$(MAKE) -f Makefile.subarch subarch=$${i} build; \
|
||||
$(MAKE) subarch=$${i} source_files='$(source_files)' build; \
|
||||
done
|
||||
touch build-stamp
|
||||
|
||||
|
@ -135,7 +141,7 @@ binary-arch: build
|
|||
dh_testdir
|
||||
for i in $(subarchs); do \
|
||||
cd debian; \
|
||||
$(MAKE) -f Makefile.subarch subarch=$${i} binary; \
|
||||
$(MAKE) subarch=$${i} source_files='$(source_files)' binary; \
|
||||
done
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
|
|
Loading…
Reference in New Issue