61bd5a
BINDIR = /usr/bin
61bd5a
DESTDIR = /usr/share/sgml/docbook/dsssl-stylesheets-1.74b
61bd5a
MANDIR= /usr/share/man
61bd5a
61bd5a
all: install
61bd5a
61bd5a
install: install-bin install-dtd install-dsl install-img install-misc install-man
61bd5a
61bd5a
install-bin:
61bd5a
	mkdir -p $(BINDIR)
61bd5a
	install -p bin/collateindex.pl $(BINDIR)
61bd5a
61bd5a
install-man:
61bd5a
	mkdir -p $(MANDIR)/man1
61bd5a
	install -m 644 -p bin/collateindex.pl.1 $(MANDIR)/man1
61bd5a
61bd5a
install-dtd:
61bd5a
	mkdir -p $(DESTDIR)/dtds/{decls,dbdsssl,html,imagelib,olink}
61bd5a
	cp -p dtds/decls/docbook.dcl $(DESTDIR)/dtds/decls
61bd5a
	cp -p dtds/decls/xml.dcl $(DESTDIR)/dtds/decls
61bd5a
	cp -p dtds/dbdsssl/dbdsssl.dtd $(DESTDIR)/dtds/dbdsssl
61bd5a
	cp -p dtds/html/dbhtml.dtd $(DESTDIR)/dtds/html
61bd5a
	cp -p dtds/html/ISOlat1.gml $(DESTDIR)/dtds/html
61bd5a
	cp -p dtds/imagelib/imagelib.dtd $(DESTDIR)/dtds/imagelib
61bd5a
	cp -p dtds/olink/olinksum.dtd $(DESTDIR)/dtds/olink
61bd5a
61bd5a
install-dsl:
61bd5a
	mkdir -p $(DESTDIR)/{lib,common,html,print,olink}
61bd5a
	cp -p lib/dblib.dsl $(DESTDIR)/lib
61bd5a
	cp -p common/*.dsl $(DESTDIR)/common
61bd5a
	cp -p common/*.ent $(DESTDIR)/common
61bd5a
	cp -p html/*.dsl $(DESTDIR)/html
61bd5a
	cp -p lib/dblib.dsl $(DESTDIR)/lib
61bd5a
	cp -p print/*.dsl $(DESTDIR)/print
61bd5a
	cp -p olink/*.dsl $(DESTDIR)/olink
61bd5a
61bd5a
install-img:
61bd5a
	mkdir -p $(DESTDIR)/images/callouts
61bd5a
	cp -p images/*.gif $(DESTDIR)/images
61bd5a
	cp -p images/callouts/*.gif $(DESTDIR)/images/callouts
61bd5a
61bd5a
#install-test:
61bd5a
#	mkdir -p $(DESTDIR)/test/{cases,imagelib,xml}
61bd5a
#	cp test/*.* $(DESTDIR)/test
61bd5a
#	cp test/cases/*.* $(DESTDIR)/test/cases
61bd5a
#	cp test/imagelib/*.* $(DESTDIR)/test/imagelib
61bd5a
#	cp test/xml/*.* $(DESTDIR)/test/xml
61bd5a
61bd5a
install-misc:
61bd5a
	cp -p catalog $(DESTDIR)
61bd5a
	cp -p VERSION $(DESTDIR)