Makefile.in: Build documentation in build target, not in install target.

Signed-off-by: default avatarAgustin Martin Domingo <agmartin@debian.org>
parent 42e9e728
Changelog for linuxdoc-tools:
This package is no longer packaged as Debian native and this
This package is no longer packaged as Debian native and this
Changelog will only contain changes after that happened.
For changes when this was packaged as a Debian native package,
For changes when this was packaged as a Debian native package,
please see "doc/CHANGES.Debian-native".
0.0.70:
======
* Build documentation in build target, not in install target
(Debian #800537).
0.9.69:
=======
* Fix compilation with new flex. Thanks Martin Milata (Debian #700958).
......@@ -50,7 +50,9 @@ WARN =
CFLAGS = $(DEBUG) $(INCLUDE) $(WARN) $(PROFILE) $(OPTIMIZE)
LDFLAGS = $(DEBUG) $(PROFILE)
all:
all: build
build:
ifeq ($(BUILD_SGMLSASP), true)
@echo "Compiling the SGML translator tools (in sgmls-1.1/)..."
( cd sgmls-1.1 ; \
......@@ -85,6 +87,16 @@ endif
> genman/$$bn; \
done
# -- Build documentation
@echo "Building documentation ..."
(cd doc; \
PREFIX=$(DESTDIR)$(prefix) \
AUXBINDIR=$(auxbin_ddir) \
PKGPERL5LIB=$(CURDIR)/perl5lib \
PKGDATADIR=$(CURDIR)/lib \
PKGENTITYMAPDIR=$(CURDIR)/entity-map \
bash Makedoc.sh)
install:: bin/linuxdoc
@echo "Installing binaries in $(bin_ddir) ..."
[ -d $(bin_ddir) ] || mkdir -m 755 -p $(bin_ddir)
......@@ -161,16 +173,7 @@ endif
mkdir -m 755 -p $(tex_ddir)
$(INSTALL_DATA) tex/* $(tex_ddir)
# -- Build and install documentation
@echo "Installing documentation in $(doc_ddir) ..."
(cd doc; \
PREFIX=$(DESTDIR)$(prefix) \
AUXBINDIR=$(auxbin_ddir) \
PKGPERL5LIB=$(CURDIR)/perl5lib \
PKGDATADIR=$(CURDIR)/lib \
PKGENTITYMAPDIR=$(CURDIR)/entity-map \
bash Makedoc.sh)
# -- Install documentation
mkdir -m 755 -p $(doc_ddir)
# cp -r doc/* $(doc_ddir)
( cd doc && tar --exclude='CVS' -cpf - . ) | ( cd $(doc_ddir) && tar -xpf - )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment