debian/rules.real:
- Split install-doc target. - Use xargs to reduce the number of arguments to dh_installman. svn path=/dists/trunk/linux-2.6/; revision=8160
This commit is contained in:
parent
af7380e560
commit
c5db64ed5f
|
@ -65,6 +65,7 @@ ifeq ($(MODULES),True)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
binary-indep: install-doc
|
binary-indep: install-doc
|
||||||
|
binary-indep: install-manual
|
||||||
binary-indep: install-patch
|
binary-indep: install-patch
|
||||||
binary-indep: install-source
|
binary-indep: install-source
|
||||||
binary-indep: install-support
|
binary-indep: install-support
|
||||||
|
@ -162,6 +163,14 @@ $(STAMPS_DIR)/build-$(ARCH)-$(SUBARCH)-$(FLAVOUR)-plain-xen:
|
||||||
python2.4 debian/bin/abicheck.py $(DIR) $(ARCH) $(SUBARCH) $(FLAVOUR)
|
python2.4 debian/bin/abicheck.py $(DIR) $(ARCH) $(SUBARCH) $(FLAVOUR)
|
||||||
touch '$@'
|
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:
|
install-base:
|
||||||
dh_installchangelogs
|
dh_installchangelogs
|
||||||
dh_installdocs
|
dh_installdocs
|
||||||
|
@ -172,20 +181,13 @@ install-base:
|
||||||
dh_md5sums
|
dh_md5sums
|
||||||
dh_builddeb
|
dh_builddeb
|
||||||
|
|
||||||
install-doc: PACKAGE_NAME_DOC = linux-doc-$(VERSION)
|
install-doc: PACKAGE_NAME = linux-doc-$(VERSION)
|
||||||
install-doc: PACKAGE_NAME_MANUAL = linux-manual-$(VERSION)
|
install-doc: DIR = $(BUILD_DIR)/build-doc
|
||||||
install-doc: SOURCE_DIR=$(BUILD_DIR)/source
|
install-doc: PACKAGE_DIR = $(CURDIR)/debian/$(PACKAGE_NAME)
|
||||||
install-doc: DIR=$(BUILD_DIR)/$@
|
install-doc: OUT_DIR = $(PACKAGE_DIR)/usr/share/doc/$(PACKAGE_NAME)
|
||||||
install-doc: PACKAGE_DIR_DOC = $(CURDIR)/debian/$(PACKAGE_NAME_DOC)
|
install-doc: DH_OPTIONS = -p$(PACKAGE_NAME)
|
||||||
install-doc: PACKAGE_DIR_MANUAL = $(CURDIR)/debian/$(PACKAGE_NAME_MANUAL)
|
install-doc: $(STAMPS_DIR)/build-doc
|
||||||
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)'
|
|
||||||
dh_clean -d -k
|
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; \
|
cd $(DIR)/Documentation; \
|
||||||
find . \
|
find . \
|
||||||
-path './DocBook/man/*' -prune -o \
|
-path './DocBook/man/*' -prune -o \
|
||||||
|
@ -193,9 +195,18 @@ install-doc: $(STAMPS_DIR)/source
|
||||||
\( -name 'Makefile*' -o -name '.*.cmd' -o -name '.gitignore' \) -prune -o \
|
\( -name 'Makefile*' -o -name '.*.cmd' -o -name '.gitignore' \) -prune -o \
|
||||||
-print \
|
-print \
|
||||||
| \
|
| \
|
||||||
cpio -pd --preserve-modification-time '$(OUT_DIR_DOC)/Documentation'
|
cpio -pd --preserve-modification-time '$(OUT_DIR)/Documentation'
|
||||||
mv '$(OUT_DIR_DOC)/Documentation/DocBook' '$(OUT_DIR_DOC)/html'
|
mv '$(OUT_DIR)/Documentation/DocBook' '$(OUT_DIR)/html'
|
||||||
-gzip -9qfr '$(OUT_DIR_DOC)/Documentation'
|
-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
|
$(MAKE) -f debian/rules.real install-base
|
||||||
|
|
||||||
install-dummy:
|
install-dummy:
|
||||||
|
|
Loading…
Reference in New Issue