Move tex stuff in sources to a tex directory. Modify install accordingly.

* Improve tex stuff handling
  - Move tex stuff in sources to an explicit tex directory.
  - Makefile.in: Install tex stuff from Makefile where specified by $(texdir).
  - debian/rules: no longer install TeX stuff here. Set tex target
    through $(texdir) in install target.
* Makefile.in, debian/rules: Cosmetic changes.
parent 7cf26ac0
......@@ -4,27 +4,28 @@
# Copyright (C) 1996 Sven Rudolph
# Copyright (C) 2008 Agustin Martin
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
datadir=@datadir@
pkgdatadir=$(datadir)/linuxdoc-tools
LINUXDOCDOC=$(prefix)/share/doc/linuxdoc-tools
mandir=@mandir@
mandir1=$(mandir)/man1
PERL=@PERL@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@ -m 755
INSTALL_DATA=@INSTALL_DATA@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
datadir = @datadir@
pkgdatadir = $(datadir)/linuxdoc-tools
LINUXDOCDOC = $(prefix)/share/doc/linuxdoc-tools
mandir = @mandir@
mandir1 = $(mandir)/man1
texdir = $(pkgdatadir)
PERL = @PERL@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ -m 755
INSTALL_DATA = @INSTALL_DATA@
#
# nsgmls or onsgmls should be installed already
# BUILD_NSGMLS=@BUILD_NSGMLS@
BUILD_SGMLSASP=@BUILD_SGMLSASP@
BUILD_ENTITY_MAP=@BUILD_ENTITY_MAP@
BUILD_ISO_ENTITIES=@BUILD_ISO_ENTITIES@
BUILD_SGMLSASP = @BUILD_SGMLSASP@
BUILD_ENTITY_MAP = @BUILD_ENTITY_MAP@
BUILD_ISO_ENTITIES = @BUILD_ISO_ENTITIES@
GENFILES := bin/linuxdoc
progs := sgml2html sgml2info sgml2latex sgml2lyx sgml2rtf sgml2txt sgmlcheck
......@@ -129,6 +130,10 @@ endif
find $(LINUXDOCDOC) -type d -print | xargs chmod 755
find $(LINUXDOCDOC) -type f -print | xargs chmod 644
# -- Install tex stuff
mkdir -p $(texdir)
$(INSTALL_DATA) tex/* $(texdir)
# what dirs do the targets clean and distclean need?
DDIRS=
MDIRS=
......
#!/usr/bin/make -f
SHELL=/bin/bash
SHELL = /bin/bash
package=linuxdoc-tools
package = linuxdoc-tools
# for FHS transition
DOCDIR=usr/share/doc/$(package)
MANDIR=usr/share/man
INFODIR=usr/share/info
copyright=debian/$(package).copyright
DOCDIR = usr/share/doc/$(package)
MANDIR = usr/share/man
INFODIR = usr/share/info
copyright = debian/$(package).copyright
# create linuxdoc-tools copyright file by merging some files
......@@ -86,7 +86,9 @@ install: build
perl5libdir=`pwd`/debian/tmp/usr/share/perl5 \
PERL=/usr/bin/perl \
mandir=`pwd`/debian/tmp/usr/share/man \
bindir=`pwd`/debian/tmp/usr/bin install
bindir=`pwd`/debian/tmp/usr/bin \
texdir=`pwd`/debian/tmp/usr/share/texmf/tex/latex/misc \
install
# --- Install shell scripts for sgml2{txt,latex,info}
for i in txt latex info; do \
......@@ -107,11 +109,6 @@ install: build
# ---
mkdir -p debian/tmp/usr/share/sgml
( cd debian/tmp/usr/share/linuxdoc-tools && mv dtd ../sgml )
# ---
mkdir -p debian/tmp/usr/share/texmf/tex/latex/misc
( cd debian/tmp/usr/share/linuxdoc-tools && \
mv {linuxdoc-sgml,linuxdoctr-sgml,qwertz,null}.sty \
../texmf/tex/latex/misc )
binary-indep:
dh_testdir -i
......
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