summaryrefslogtreecommitdiffstats
path: root/abs/extra/docbook-dsssl/docbook-style-dsssl.Makefile
blob: af1a1fb1ec0f1ff1c67e75cab1a1ca2e65fdb7f9 (plain)
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
49
50
51
BINDIR = /usr/bin
DESTDIR = /usr/share/sgml/docbook/dsssl-stylesheets-1.74b
MANDIR= /usr/share/man

all: install

install: install-bin install-dtd install-dsl install-img install-misc install-man

install-bin:
	mkdir -p $(BINDIR)
	install -p bin/collateindex.pl $(BINDIR)

install-man:
	mkdir -p $(MANDIR)/man1
	install -m 644 -p bin/collateindex.pl.1 $(MANDIR)/man1

install-dtd:
	mkdir -p $(DESTDIR)/dtds/{decls,dbdsssl,html,imagelib,olink}
	cp -p dtds/decls/docbook.dcl $(DESTDIR)/dtds/decls
	cp -p dtds/decls/xml.dcl $(DESTDIR)/dtds/decls
	cp -p dtds/dbdsssl/dbdsssl.dtd $(DESTDIR)/dtds/dbdsssl
	cp -p dtds/html/dbhtml.dtd $(DESTDIR)/dtds/html
	cp -p dtds/html/ISOlat1.gml $(DESTDIR)/dtds/html
	cp -p dtds/imagelib/imagelib.dtd $(DESTDIR)/dtds/imagelib
	cp -p dtds/olink/olinksum.dtd $(DESTDIR)/dtds/olink

install-dsl:
	mkdir -p $(DESTDIR)/{lib,common,html,print,olink}
	cp -p lib/dblib.dsl $(DESTDIR)/lib
	cp -p common/*.dsl $(DESTDIR)/common
	cp -p common/*.ent $(DESTDIR)/common
	cp -p html/*.dsl $(DESTDIR)/html
	cp -p lib/dblib.dsl $(DESTDIR)/lib
	cp -p print/*.dsl $(DESTDIR)/print
	cp -p olink/*.dsl $(DESTDIR)/olink

install-img:
	mkdir -p $(DESTDIR)/images/callouts
	cp -p images/*.gif $(DESTDIR)/images
	cp -p images/callouts/*.gif $(DESTDIR)/images/callouts

#install-test:
#	mkdir -p $(DESTDIR)/test/{cases,imagelib,xml}
#	cp test/*.* $(DESTDIR)/test
#	cp test/cases/*.* $(DESTDIR)/test/cases
#	cp test/imagelib/*.* $(DESTDIR)/test/imagelib
#	cp test/xml/*.* $(DESTDIR)/test/xml

install-misc:
	cp -p catalog $(DESTDIR)
	cp -p VERSION $(DESTDIR)