1 | # Copyright (C) 2006, 2007 International Business Machines and others. |
---|
2 | # All Rights Reserved. |
---|
3 | # This file is distributed under the Eclipse Public License. |
---|
4 | |
---|
5 | ## $Id: Makemain.inc 2107 2011-02-20 20:07:36Z stefan $ |
---|
6 | |
---|
7 | # Author: Andreas Waechter IBM 2006-04-13 |
---|
8 | |
---|
9 | ######################################################################## |
---|
10 | # Documentation installation # |
---|
11 | ######################################################################## |
---|
12 | |
---|
13 | DocFiles = README AUTHORS LICENSE |
---|
14 | DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME) |
---|
15 | |
---|
16 | install-doc: $(DocFiles) |
---|
17 | test -z "$(DocInstallDir)" || $(mkdir_p) "$(DESTDIR)$(DocInstallDir)" |
---|
18 | for file in $(DocFiles); do \ |
---|
19 | if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ |
---|
20 | if test -f "$$dir$$file"; then $(INSTALL_DATA) "$$dir$$file" "$(DESTDIR)$(DocInstallDir)/$$file"; fi; \ |
---|
21 | done |
---|
22 | |
---|
23 | uninstall-doc: |
---|
24 | for file in $(DocFiles); do \ |
---|
25 | rm -f "$(DESTDIR)$(DocInstallDir)/$$file"; \ |
---|
26 | done |
---|
27 | |
---|
28 | ######################################################################## |
---|
29 | # Maintainer Stuff # |
---|
30 | ######################################################################## |
---|
31 | |
---|
32 | if MAINTAINER_MODE |
---|
33 | |
---|
34 | # Make sure acinclude is using most recent coin.m4 |
---|
35 | $(srcdir)/acinclude.m4: $(BUILDTOOLSDIR)/coin.m4 |
---|
36 | cat $(LIBTOOLM4) $< > $@ |
---|
37 | |
---|
38 | # Make sure the autotools scripts are up to date |
---|
39 | $(AUX_DIR)/install-sh: $(BUILDTOOLSDIR)/install-sh |
---|
40 | cp $< $@ |
---|
41 | |
---|
42 | $(AUX_DIR)/missing: $(BUILDTOOLSDIR)/missing |
---|
43 | cp $< $@ |
---|
44 | |
---|
45 | $(AUX_DIR)/config.guess: $(BUILDTOOLSDIR)/config.guess |
---|
46 | cp $< $@ |
---|
47 | |
---|
48 | $(AUX_DIR)/config.sub: $(BUILDTOOLSDIR)/config.sub |
---|
49 | cp $< $@ |
---|
50 | |
---|
51 | $(AUX_DIR)/depcomp: $(BUILDTOOLSDIR)/depcomp |
---|
52 | cp $< $@ |
---|
53 | |
---|
54 | $(AUX_DIR)/ltmain.sh: $(BUILDTOOLSDIR)/ltmain.sh |
---|
55 | cp $< $@ |
---|
56 | |
---|
57 | # Take care of updating externals (if Dependencies file exists) |
---|
58 | if HAVE_EXTERNALS |
---|
59 | $(top_builddir)/Makefile: .Dependencies-stamp |
---|
60 | |
---|
61 | .Dependencies-stamp: $(srcdir)/Dependencies |
---|
62 | cd $(srcdir); BuildTools/set_externals Dependencies |
---|
63 | touch .Dependencies-stamp |
---|
64 | |
---|
65 | update-externals: .Dependencies-stamp |
---|
66 | cd $(srcdir); svn update |
---|
67 | |
---|
68 | endif |
---|
69 | |
---|
70 | endif |
---|
71 | |
---|
72 | if HAVE_EXTERNALS |
---|
73 | EXTRA_DIST += Dependencies |
---|
74 | DISTCLEANFILES += .Dependencies-stamp |
---|
75 | endif |
---|
76 | |
---|
77 | DISTCLEANFILES += $(VPATH_DISTCLEANFILES) |
---|
78 | |
---|
79 | .PHONY: install-doc uninstall-doc update-externals |
---|