Makefile.am 658 Bytes
Newer Older
1
2
3
4
5
6
7
DOCS_SRC =					\
	librsvg.toml				\
	load-and-render.c			\
	migrating.md				\
	overview.md				\
	recommendations.md			\
	$(NULL)
8

9
EXTRA_DIST = $(DOCS_SRC)
Christian Persch's avatar
Christian Persch committed
10

11
12
HEADERS_WITH_DOCS = $(top_srcdir)/include/librsvg/*.h
GIR_FILE = $(top_builddir)/Rsvg-2.0.gir
13

14
CLEANFILES = build.stamp
Christian Persch's avatar
Christian Persch committed
15

16
17
18
build.stamp: $(DOCS_SRC) $(HEADERS_WITH_DOCS) $(GIR_FILE)
	$(GI_DOCGEN) generate -C $(srcdir)/librsvg.toml --content-dir=$(top_srcdir)/doc $(GIR_FILE)
	touch build.stamp
Christian Persch's avatar
Christian Persch committed
19

20
21
clean-local:
	rm -rf Rsvg-2.0
Christian Persch's avatar
Christian Persch committed
22

23
install-data-local: build.stamp
24
25
	$(MKDIR_P) $(DESTDIR)/$(docdir)/Rsvg-2.0
	for f in Rsvg-2.0/*; do $(INSTALL_DATA) $$f $(DESTDIR)/$(docdir)/Rsvg-2.0; done
Christian Persch's avatar
Christian Persch committed
26

27
all-local: build.stamp