[kernel] r8160 - dists/trunk/linux-2.6/debian
Bastian Blank
waldi at alioth.debian.org
Thu Jan 11 13:43:14 CET 2007
Author: waldi
Date: Thu Jan 11 13:43:14 2007
New Revision: 8160
Modified:
dists/trunk/linux-2.6/debian/rules.real
Log:
debian/rules.real:
- Split install-doc target.
- Use xargs to reduce the number of arguments to dh_installman.
Modified: dists/trunk/linux-2.6/debian/rules.real
==============================================================================
--- dists/trunk/linux-2.6/debian/rules.real (original)
+++ dists/trunk/linux-2.6/debian/rules.real Thu Jan 11 13:43:14 2007
@@ -65,6 +65,7 @@
endif
binary-indep: install-doc
+binary-indep: install-manual
binary-indep: install-patch
binary-indep: install-source
binary-indep: install-support
@@ -162,6 +163,14 @@
python2.4 debian/bin/abicheck.py $(DIR) $(ARCH) $(SUBARCH) $(FLAVOUR)
touch '$@'
+$(STAMPS_DIR)/build-doc: SOURCE_DIR=$(BUILD_DIR)/source
+$(STAMPS_DIR)/build-doc: DIR=$(BUILD_DIR)/build-doc
+$(STAMPS_DIR)/build-doc:
+ rm -rf '$(DIR)'
+ cp -al '$(SOURCE_DIR)' '$(DIR)'
+ $(setup_env) make -C '$(DIR)' $(JOBS_ARG) htmldocs mandocs
+ touch '$@'
+
install-base:
dh_installchangelogs
dh_installdocs
@@ -172,20 +181,13 @@
dh_md5sums
dh_builddeb
-install-doc: PACKAGE_NAME_DOC = linux-doc-$(VERSION)
-install-doc: PACKAGE_NAME_MANUAL = linux-manual-$(VERSION)
-install-doc: SOURCE_DIR=$(BUILD_DIR)/source
-install-doc: DIR=$(BUILD_DIR)/$@
-install-doc: PACKAGE_DIR_DOC = $(CURDIR)/debian/$(PACKAGE_NAME_DOC)
-install-doc: PACKAGE_DIR_MANUAL = $(CURDIR)/debian/$(PACKAGE_NAME_MANUAL)
-install-doc: OUT_DIR_DOC = $(PACKAGE_DIR_DOC)/usr/share/doc/$(PACKAGE_NAME_DOC)
-install-doc: DH_OPTIONS = -p$(PACKAGE_NAME_DOC) -p$(PACKAGE_NAME_MANUAL)
-install-doc: $(STAMPS_DIR)/source
- rm -rf '$(DIR)'
- cp -al '$(SOURCE_DIR)' '$(DIR)'
+install-doc: PACKAGE_NAME = linux-doc-$(VERSION)
+install-doc: DIR = $(BUILD_DIR)/build-doc
+install-doc: PACKAGE_DIR = $(CURDIR)/debian/$(PACKAGE_NAME)
+install-doc: OUT_DIR = $(PACKAGE_DIR)/usr/share/doc/$(PACKAGE_NAME)
+install-doc: DH_OPTIONS = -p$(PACKAGE_NAME)
+install-doc: $(STAMPS_DIR)/build-doc
dh_clean -d -k
- cd '$(DIR)'; $(setup_env) make $(JOBS_ARG) htmldocs mandocs
- DH_OPTIONS= dh_installman -p$(PACKAGE_NAME_MANUAL) '$(DIR)/Documentation/DocBook/'*.9 '$(DIR)/Documentation/DocBook/man/'*.9
cd $(DIR)/Documentation; \
find . \
-path './DocBook/man/*' -prune -o \
@@ -193,9 +195,18 @@
\( -name 'Makefile*' -o -name '.*.cmd' -o -name '.gitignore' \) -prune -o \
-print \
| \
- cpio -pd --preserve-modification-time '$(OUT_DIR_DOC)/Documentation'
- mv '$(OUT_DIR_DOC)/Documentation/DocBook' '$(OUT_DIR_DOC)/html'
- -gzip -9qfr '$(OUT_DIR_DOC)/Documentation'
+ cpio -pd --preserve-modification-time '$(OUT_DIR)/Documentation'
+ mv '$(OUT_DIR)/Documentation/DocBook' '$(OUT_DIR)/html'
+ -gzip -9qfr '$(OUT_DIR)/Documentation'
+ $(MAKE) -f debian/rules.real install-base
+
+install-manual: PACKAGE_NAME = linux-manual-$(VERSION)
+install-manual: DIR=$(BUILD_DIR)/build-doc
+install-manual: PACKAGE_DIR = $(CURDIR)/debian/$(PACKAGE_NAME)
+install-manual: DH_OPTIONS = -p$(PACKAGE_NAME)
+install-manual: $(STAMPS_DIR)/build-doc
+ dh_clean -d -k
+ find '$(DIR)/Documentation/DocBook/' -name '*.9' | xargs dh_installman
$(MAKE) -f debian/rules.real install-base
install-dummy:
More information about the Kernel-svn-changes
mailing list