1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
#!/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 | LC_ALL=C 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
|