File: Makefile.am

package info (click to toggle)
givaro 4.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,112 kB
  • sloc: cpp: 29,827; makefile: 1,065; sh: 366; csh: 196
file content (90 lines) | stat: -rwxr-xr-x 2,312 bytes parent folder | download
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Copyright(c)'2010 by The Givaro group
# This file is part of Givaro.
# Givaro is governed by the CeCILL-B license under French law
# and abiding by the rules of distribution of free software.
# see the COPYRIGHT file for more details.


if GIVARO_BUILD_DOC
USE_TARGETS = docs
INSTALL_TARGETS = install-doc
endif

docdir=$(GIVARO_DOC_PATH)

#man1_MANS = givaro-config.1

all all-local: $(USE_TARGETS)

install install-data-local: $(USE_TARGETS) $(INSTALL_TARGETS)

if GIVARO_DOXYGEN_FOUND

docs:
	sed -i 's/^\\version.*/\\version\ $(VERSION)/' mainpage.doxy
	if test -d givaro-html ; then echo exists; else mkdir givaro-html ; fi
	if test -d givaro-dev-html ; then echo exists; else mkdir givaro-dev-html ; fi
	cp ../INSTALL givaro-html/
	cp ../COPYING givaro-html/
	cp ../AUTHORS givaro-html/
	doxygen Doxyfile

#  if test -d givaro-dev-html ; then echo exists; else mkdir givaro-dev-html ; fi
#  cp index-dev.html givaro-dev-html/index.html
#  cp tutorial.html givaro-html/
#  cp install-dist.html givaro-html/
#  cp install-dev.html givaro-html/

docs_dev:
	make docs
	cp ../INSTALL givaro-dev-html/
	cp ../COPYING givaro-dev-html/
	cp ../AUTHORS givaro-dev-html/
	doxygen DoxyfileDev

#  cp tutorial.html givaro-dev-html/
#  cp install-dist.html givaro-dev-html/
#  cp install-dev.html givaro-dev-html/

install-doc:
	mkdir -p               $(DESTDIR)/$(docdir)
	cp -rp givaro-html     $(DESTDIR)/$(docdir)/givaro-html
	cp -rp givaro-dev-html $(DESTDIR)/$(docdir)/givaro-dev-html
	cp -p givaro.html      $(DESTDIR)/$(docdir)/givaro.html

uninstall-hook:
	(test -d "$(DESTDIR)/$(docdir)/givaro-html" && rm -r "$(DESTDIR)/$(docdir)/givaro-html") || true
	(test -d "$(DESTDIR)/$(docdir)/givaro-dev-html" && rm -r "$(DESTDIR)/$(docdir)/givaro-dev-html") || true
	(test -f "$(DESTDIR)/$(docdir)/givaro.html" && rm "$(DESTDIR)/$(docdir)/givaro.html") || true

else

docs:
	@echo
	@echo "*** ERROR ***"
	@echo "you need doxygen to build documentation"
	@echo

endif

EXTRA_DIST= \
			Doxyfile.in    \
			DoxyfileDev.in \
			mainpage.doxy  \
			givaro.html
# \
#			doc.doxy            \
#			tutorial.doxy       \
#			givaro.html         \
#			givaro-config.1 \
#tutorial.html       \
#	install-dev.html    \
#	index-dev.html      \
#	install-dist.html


clean-local :
	rm -rf givaro-html
	rm -rf givaro-dev-html