File: Makefile.am

package info (click to toggle)
libcaca 0.99.beta19-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,200 kB
  • ctags: 3,824
  • sloc: ansic: 22,346; python: 2,316; cs: 1,213; cpp: 1,114; java: 916; objc: 836; makefile: 606; sh: 457; ruby: 193; asm: 65
file content (59 lines) | stat: -rw-r--r-- 1,864 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

EXTRA_DIST = doxygen.cfg.in doxygen.css footer.html header.html \
             $(man_MANS) $(doxygen_DOX)
CLEANFILES = doxygen.log stamp-latex stamp-doxygen

doxygen_DOX = libcaca.dox user.dox migrating.dox tutorial.dox canvas.dox font.dox style.dox
man_MANS = caca-config.1 cacafire.1 cacaview.1 cacaserver.1 img2txt.1 cacaplay.1

if BUILD_DOCUMENTATION
htmldoc_DATA = html/doxygen.css
htmldocdir = $(datadir)/doc/libcaca-dev/html
if USE_LATEX
pdfdoc_DATA = latex/libcaca.pdf
pdfdocdir = $(datadir)/doc/libcaca-dev/pdf
endif
endif

html/doxygen.css html/doxygen.png: stamp-doxygen
latex/libcaca.pdf: stamp-latex

stamp-doxygen: $(doxygen_DOX)
if BUILD_DOCUMENTATION
	doxygen doxygen.cfg 2>&1 | tee doxygen.log
	touch stamp-doxygen
endif

stamp-latex: stamp-doxygen
if BUILD_DOCUMENTATION
if USE_LATEX
	rm -f latex/libcaca.tex latex/libcaca.pdf
	(cd latex &&  pdflatex refman ; makeindex refman.idx ; pdflatex refman ; pdflatex refman ; pdflatex refman ; pdflatex refman ; pdflatex refman; echo "pdflatex exit code: $$?")
	mv latex/refman.pdf latex/libcaca.pdf
	touch stamp-latex
endif
endif

clean-local:
	-rm -Rf html latex man

install-data-local:
if BUILD_DOCUMENTATION
	mkdir -p $(DESTDIR)$(datadir)/doc
	$(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcaca-dev/html
	cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
	  $(DESTDIR)$(datadir)/doc/libcaca-dev/html
	$(mkinstalldirs) $(DESTDIR)$(mandir)/man3
	for man in $$(find man -name '*.3caca'); do \
	  sed -e 's/man3caca/man3/g' -e "s/fC'\([a-zA-Z0-9]*\)'/fC\"\1\"/g" \
	    $$man >$(DESTDIR)$(mandir)/man3/$${man##*/}; \
	done
endif
	$(mkinstalldirs) $(DESTDIR)$(mandir)/man1
	rm -f $(DESTDIR)$(mandir)/man1/cacademo.1
	ln -sf cacafire.1 $(DESTDIR)$(mandir)/man1/cacademo.1

uninstall-local:
	rm -f $(DESTDIR)$(datadir)/doc/libcucul-dev
	rmdir $(DESTDIR)$(datadir)/doc 2>/dev/null || true