debian swirl logo

Back to the packages list docbook-dsssl

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk

bindir		= $(DEB_DESTDIR)/usr/bin
docdir		= $(DEB_DESTDIR)/usr/share/doc/$(cdbs_curpkg)
dsssldir	= $(DEB_DESTDIR)/usr/share/sgml/docbook/stylesheet/dsssl/modular

install_file	= install -m 644
install_script	= install -m 755

DEB_INSTALL_CHANGELOGS_ALL		= ChangeLog.combined
DEB_INSTALL_DOCS_ALL			= BUGS README WhatsNew RELEASE-NOTES.txt
DEB_INSTALL_MANPAGES_docbook-dsssl	= --language=C bin/collateindex.pl.1


build/docbook-dsssl:: ChangeLog.combined

# The upstream sources have one ChangeLog file for each directory.  For
# the Debian package, we build a combined one.
ChangeLog.combined: $(shell find -name ChangeLog | sort)
		( \
		    for file in $+; do \
		        echo "$$file" | sed 's,^./,,'; \
		        echo; \
		        sed 's/^/  | /' "$$file"; \
		        echo; \
		    done \
		) >$@


clean::
		rm -f ChangeLog.combined


install/docbook-dsssl::
		set -e; \
		for file in VERSION catalog \
		    `find images -name \*.\*` \
		    `find dtds -name \*.dtd -o -name dbhtml.dcl` \
		    `find common lib html print olink -name \*.dsl -o -name \*.ent` \
		    `find frames -name \*.css -o -name \*.js -o -name \*.dsl -o -name \*.htm` ; \
		do \
		    $(install_file) -D $$file $(dsssldir)/$$file; \
		done

		$(install_script) -D bin/collateindex.pl $(bindir)/collateindex.pl
		$(install_file) -D frames/README $(docdir)/README.frames

Builds:

docbook-dsssl
modular docbook dsssl stylesheets, for print and html