File: Makefile.am

package info (click to toggle)
appindicator3-sharp 12.10.0+git20151221-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 204 kB
  • sloc: makefile: 103; sh: 3
file content (41 lines) | stat: -rw-r--r-- 1,107 bytes parent folder | download | duplicates (4)
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
if ENABLE_MONODOC
TARGETS = $(ASSEMBLY_NAME)-docs.source $(ASSEMBLY_NAME)-docs.zip $(ASSEMBLY_NAME)-docs.tree
docsdir = $(prefix)/lib/monodoc/sources
docs_DATA = $(TARGETS)
else
TARGETS = 
docsdir = $(datadir)
docs_DATA =
endif

ASSEMBLIES = $(top_srcdir)/out/$(ASSEMBLY_NAME).dll

all: $(TARGETS)

update:
	$(MDOC) update --out=en $(ASSEMBLIES)

$(ASSEMBLY_NAME)-docs.source:
	@echo "Generating $@"
	@echo "<?xml version=\"1.0\"?>" > $@
	@echo "<monodoc>" >> $@
	@echo "  <source provider=\"ecma\" basefile=\"$(ASSEMBLY_NAME)-docs\" path=\"classlib-$(ASSEMBLY_SHORTNAME)\"/>" >> $@
	@echo "</monodoc>" >> $@

$(ASSEMBLY_NAME)-docs.zip $(ASSEMBLY_NAME)-docs.tree: assemble

assemble: update
	$(MDASSEMBLER) --ecma $(srcdir)/en -o $(ASSEMBLY_NAME)-docs

CLEANFILES = $(TARGETS)
DISTCLEANFILES = $(srcdir)/en/*/*.xml $(srcdir)/en/*.xml

NAMESPACES=$(ASSEMBLY_NAMESPACE)

dist-hook:
	mkdir -p $(distdir)/en
	cp $(srcdir)/en/*.xml $(distdir)/en/
	for i in $(NAMESPACES); do                          \
		mkdir -p $(distdir)/en/$$i;                     \
		cp $(srcdir)/en/$$i/*.xml $(distdir)/en/$$i;    \
	done