File: Makefile.am

package info (click to toggle)
libabigail 2.9-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,021,756 kB
  • sloc: xml: 572,663; cpp: 110,945; sh: 11,868; ansic: 4,329; makefile: 3,486; python: 1,684; ada: 62
file content (72 lines) | stat: -rw-r--r-- 2,284 bytes parent folder | download | duplicates (3)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
## SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
SUBDIRS = manuals

EXTRA_DIST = api/libabigail.doxy website/libabigail-website.doxy

html-doc: $(DO_HTML)
website: website-html-doxygen

if ENABLE_APIDOC
install-html-doc: $(DO_INSTALL_HTML)
endif

DO_HTML = apidoc-html-doxygen website-html-doxygen
DO_INSTALL_HTML = apidoc-install-html-doxygen

#doxygen
DOXY_API_SRC_CFG 	=	${abs_srcdir}/api/libabigail.doxy
DOXY_API_BLD_DIR 	=	${abs_builddir}/api
DOXY_API_BLD_CFG 	=	${abs_builddir}/api/html.doxy
DOXY_WEBSITE_BLD_DIR 	=	${abs_builddir}/website
DOXY_WEBSITE_SRC_CFG 	=	${abs_srcdir}/website/libabigail-website.doxy
DOXY_WEBSITE_BLD_CFG 	=	${abs_builddir}/website/libabigail-website.doxy

$(DOXY_API_BLD_DIR):
	if test ! -d $(DOXY_API_BLD_DIR); then		\
	  mkdir -p $(DOXY_API_BLD_DIR); 		\
	fi

$(DOXY_WEBSITE_BLD_DIR):
	if test ! -d $(DOXY_WEBSITE_BLD_DIR); then	\
	  mkdir -p $(DOXY_WEBSITE_BLD_DIR);		\
	fi

doxygen-api-cfg: $(DOXY_API_SRC_CFG) $(DOXY_API_BLD_DIR)
	sed -e "s=LIBABIGAIL_INPUT=${abs_srcdir}/..=g" < $(DOXY_API_SRC_CFG) \
	> $(DOXY_API_BLD_CFG)
	sed -i -e "s=LIBABIGAIL_OUTPUT=${abs_builddir}/..=g" $(DOXY_API_BLD_CFG)

doxygen-website-cfg: $(DOXY_WEBSITE_SRC_CFG) $(DOXY_WEBSITE_BLD_DIR)
	sed -e "s=LIBABIGAIL_INPUT=${abs_srcdir}/..=g" < $(DOXY_WEBSITE_SRC_CFG) \
	> $(DOXY_WEBSITE_BLD_CFG)
	sed -i -e "s=LIBABIGAIL_OUTPUT=${abs_builddir}/..=g" $(DOXY_WEBSITE_BLD_CFG)

apidoc-html-doxygen: doxygen-api-cfg
	doxygen $(DOXY_API_BLD_CFG)

website-html-doxygen: doxygen-website-cfg
	doxygen $(DOXY_WEBSITE_BLD_CFG)

apidoc-install-html-doxygen: apidoc-html-doxygen
	test -d "$(DESTDIR)$(docdir)" || $(mkinstalldirs) "$(DESTDIR)$(docdir)"
	cp -r ${DOXY_API_BLD_DIR} "$(DESTDIR)$(docdir)"

website-install-html-doxygen: doxygen-website-cfg
	test -z "$(DESTDIR)$(docdir)/website" || $(mkinstalldirs) "$(DESTDIR)$(docdir)/website"
	cp -r $(DOXY_WEBSITE_BLD_DIR) "$(DESTDIR)$(docdir)/website"

# By adding these files here, automake will remove them for 'make clean'
CLEANFILES = $(DOXY_API_BLD_CFG) $(DOXY_WEBSITE_BLD_CFG)

# To remove directories.
clean-local:
	-rm -rf $(DOXY_API_BLD_DIR)/*/* $(DOXY_WEBSITE_BLD_DIR)/*/*

#To install everything:
if ENABLE_APIDOC

install-html-doc: install-html

uninstall-local: clean-local
	-rm -rf $(DESTDIR)$(docdir)
endif