File: Makefile.am

package info (click to toggle)
coin2 2.5.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 29,156 kB
  • ctags: 29,453
  • sloc: cpp: 175,383; ansic: 42,198; sh: 9,377; makefile: 7,260; perl: 990; yacc: 181; lex: 114
file content (83 lines) | stat: -rw-r--r-- 3,050 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
73
74
75
76
77
78
79
80
81
82
83
# NOTES:
#   This Makefile.am relies on $(htmlhelpdir) being AC_SUBST'ed into place...

if BUILD_HTMLHELP

# **************************************************************************
# build trickery

$(top_builddir)/docs/coin.doxygen: $(top_srcdir)/docs/coin.doxygen.in $(top_builddir)/config.status
	@( cd $(top_builddir); $(MAKE) docs/coin.doxygen )

Coin-@COIN_MAJOR_VERSION@.chm: $(top_builddir)/docs/coin.doxygen
	@( cd ..; \
	echo " $(sim_ac_doxygen_exe) docs/coin.doxygen"; \
	"$(sim_ac_doxygen_exe)" docs/coin.doxygen )

all-local: Coin-@COIN_MAJOR_VERSION@.chm

# **************************************************************************
# install trickery
# - uninstall after "make clean" will regenerate docs - ought to be fixed

install-data-local: install-htmlhelp

uninstall-local: uninstall-htmlhelp

if MAC_FRAMEWORK
# install-htmlhelp: filelist.txt
# 	@$(NORMAL_INSTALL)
# 	$(mkinstalldirs) "$(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Documentation"
# 	@echo " ln -sf Versions/Current/Documentation $(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Documentation"; \
# 	ln -sf Versions/Current/Documentation "$(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Documentation"
# 	@destdir="$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Documentation"; \
# 	list="`cat filelist.txt`"; \
# 	for file in $$list; do \
# 	  echo " $(INSTALL_DATA) $$file $(DESTDIR)$$destdir/$$file"; \
# 	  $(INSTALL_DATA) $$file "$(DESTDIR)$$destdir/$$file"; \
# 	done

# uninstall-html: filelist.txt
# 	@$(NORMAL_UNINSTALL)
# 	@destdir="$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Documentation"; \
# 	list="`cat filelist.txt`"; \
# 	for file in $$list; do \
# 	  echo " rm -f $(DESTDIR)$(destdir)/$$file"; \
# 	  rm -f "$(DESTDIR)$(destdir)/$$file"; \
# 	done
# 	@echo " rmdir $(DESTDIR)$(destdir)"; \
# 	rmdir $(DESTDIR)$(destdir) 2>/dev/null; \
# 	:
else
install-htmlhelp: Coin-@COIN_MAJOR_VERSION@.chm
	@$(NORMAL_INSTALL)
	@if test -d $(DESTDIR)/$(htmlhelpdir); then :; else \
	  echo " $(mkinstalldirs) $(DESTDIR)$(htmlhelpdir)"; \
	  $(mkinstalldirs) $(DESTDIR)$(htmlhelpdir); \
	fi
	for file in Coin-@COIN_MAJOR_VERSION@.chm; do \
	  echo " $(INSTALL_DATA) $$file $(DESTDIR)$(htmlhelpdir)/$$file"; \
	  $(INSTALL_DATA) $$file "$(DESTDIR)$(htmlhelpdir)/$$file"; \
	done

uninstall-htmlhelp: Coin-@COIN_MAJOR_VERSION@.chm
	@$(NORMAL_UNINSTALL)
	for file in Coin-@COIN_MAJOR_VERSION@.chm; do \
	  echo " rm -f $(DESTDIR)$(htmlhelpdir)/$$file"; \
	  rm -f "$(DESTDIR)$(htmlhelpdir)/$$file"; \
	done
	@echo " rmdir $(DESTDIR)$(htmlhelpdir)"; \
	rmdir $(DESTDIR)$(htmlhelpdir) 2>/dev/null; \
	:
endif

endif

# IRIX make barfs if clean-local is moved inside the conditional clause.
# Automake bug?  20011025 larsa
clean-local:
	@if test -f Coin-@COIN_MAJOR_VERSION@.chm.txt; then \
	  echo " rm Coin-@COIN_MAJOR_VERSION@.chm"; \
	  rm Coin-@COIN_MAJOR_VERSION@.chm; \
	fi