File: Makefile.am

package info (click to toggle)
singular 1%3A4.1.1-p2%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 35,860 kB
  • sloc: cpp: 288,280; ansic: 17,387; lisp: 4,242; yacc: 1,654; python: 1,608; makefile: 1,424; lex: 1,387; perl: 632; sh: 567; xml: 182
file content (54 lines) | stat: -rw-r--r-- 2,090 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
42
43
44
45
46
47
48
49
50
51
52
53
54
htmldir = $(docdir)/html

GIT_VERSION := $(shell $(top_srcdir)/git-version-gen $(top_srcdir)/.tarball-git-version)

doxyrun:
	if [ -z "$(DOXYGEN)" ]; then \
		which -s doxygen || (echo Please add 'doxygen' to your PATH; exit 1;); \
		export DOXYGEN=`which -s doxygen`; \
	fi
	if [ -z "$(DOXYGEN_CONFIG)" ]; then \
		echo Please set 'DOXYGEN_CONFIG' env. var!; \
		exit 1; \
	fi
	if [ ! -r "$(DOXYGEN_CONFIG)" ]; then \
		echo Please make the doxygen configuration readable: "$(DOXYGEN_CONFIG)"!; \
		exit 1; \
	fi
	export abs_top_srcdir="$(abs_top_srcdir)"; \
	export abs_top_builddir="$(abs_top_builddir)"; \
	export git_version="$(GIT_VERSION)"; \
 	echo Running "$(DOXYGEN)" "$(DOXYGEN_CONFIG)" with abs_top_srcdir: "$(abs_top_srcdir)", abs_top_builddir: "$(abs_top_builddir)", GIT_VERSION: "$(git_version)"...; \
	$(DOXYGEN) $(DOXYGEN_CONFIG) ; \
 	echo Finished running "$(DOXYGEN)" "$(DOXYGEN_CONFIG)" with abs_top_srcdir: "$(abs_top_srcdir)", abs_top_builddir: "$(abs_top_builddir)", GIT_VERSION: "$(git_version)"...;

if HAVE_DOXYGEN

doxyfile.stamp:
	$(MAKE) doxyrun abs_top_srcdir="$(abs_top_srcdir)" abs_top_builddir="$(abs_top_builddir)" \
	DOXYGEN_CONFIG="$(abs_srcdir)/Doxyfile.in" DOXYGEN="$(DOXYGEN)"
	echo Timestamp > doxyfile.stamp

##CLEANFILES = doxyfile.stamp

# all-local: doxyfile.stamp

html: doxyfile.stamp

install-html-local: html
	$(MKDIR_P) $(DESTDIR)$(htmldir)
	cp -rp -t $(DESTDIR)$(htmldir) html/search
	cp -p -t $(DESTDIR)$(htmldir) html/*.html html/*.png
	cp -p -t $(DESTDIR)$(htmldir) html/doxygen.css html/stylesheet.css html/tabs.css
	cp -p -t $(DESTDIR)$(htmldir) html/dynsections.js html/svgpan.js
	rdfind -outputname /dev/null -removeidentinode false -makesymlinks true $(DESTDIR)$(htmldir)
	symlinks -r -c -s -v $(DESTDIR)$(htmldir)
	rdfind -outputname /dev/null -removeidentinode false -makesymlinks true $(DESTDIR)$(htmldir)/search
	symlinks -r -c -s -v $(DESTDIR)$(htmldir)/search

clean-local:
	rm -f html_dox.log tags doxyfile.stamp
	rm -rf html
endif

EXTRA_DIST = Doxyfile.in logo.png DoxygenLayout.xml header.html footer.html stylesheet.css