summaryrefslogtreecommitdiff
path: root/mono/doc/Makefile.am
blob: 7f87c25cda96545b953cd70d387f61bd5043f850 (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
if ENABLE_MONODOC
TARGETS = dbus-sharp-docs.zip dbus-sharp-docs.tree dbus-sharp-docs.source
DOCDIR = `$(MONODOC) --get-sourcesdir`

install-data-local:
	install -d -m 755 $(DESTDIR)/`monodoc --get-sourcesdir`
	install -m 644 $(srcdir)/dbus-sharp-docs.source $(DESTDIR)/`monodoc --get-sourcesdir`
	install -m 644 dbus-sharp-docs.tree $(DESTDIR)/`monodoc --get-sourcesdir`
	install -m 644 dbus-sharp-docs.zip $(DESTDIR)/`monodoc --get-sourcesdir`

uninstall-local:
	rm -f $(DESTDIR)/`monodoc --get-sourcesdir`/dbus-sharp-docs.source
	rm -f $(DESTDIR)/`monodoc --get-sourcesdir`/dbus-sharp-docs.tree
	rm -f $(DESTDIR)/`monodoc --get-sourcesdir`/dbus-sharp-docs.zip
else
TARGETS = 
DOCDIR = $(datadir)
endif

noinst_DATA = $(TARGETS)

ASSEMBLER = $(MONODOC) --assemble
UPDATER = $(MONODOC) --update

dbus-sharp-docs.zip: dbus-sharp-docs.tree

dbus-sharp-docs.tree: $(srcdir)/en/*/*.xml $(srcdir)/en/*.xml
	$(ASSEMBLER) --ecma $(srcdir)/en -o dbus-sharp-docs

update:
		$(UPDATER) ../dbus-sharp.dll -o ./en -f

CLEANFILES = dbus-sharp-docs.zip dbus-sharp-docs.tree

EXTRA_DIST = dbus-sharp-docs.source
if ENABLE_MONODOC
EXTRA_DIST += dbus-sharp-docs.tree dbus-sharp-docs.zip
endif

dist-hook:
	mkdir -p $(distdir)/en
	cp $(srcdir)/en/*.xml $(distdir)/en/
	mkdir -p $(distdir)/en/DBus
	cp $(srcdir)/en/DBus/*.xml $(distdir)/en/DBus/
	mkdir -p $(distdir)/en/DBus.DBusType
	cp $(srcdir)/en/DBus.DBusType/*.xml $(distdir)/en/DBus.DBusType/