source: trunk/Makemain.inc @ 2362

Last change on this file since 2362 was 2105, checked in by stefan, 9 years ago

change automatic update of externals to check for Dependencies file and use set_externals script

  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
RevLine 
[899]1# Copyright (C) 2006, 2007 International Business Machines and others.
[1]2# All Rights Reserved.
[1950]3# This file is distributed under the Eclipse Public License.
[1]4
[928]5## $Id: Makemain.inc 2105 2011-02-19 18:46:00Z stefan $
[1]6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9########################################################################
[810]10#                    Documentation installation                        #
11########################################################################
12
13DocFiles =  README AUTHORS LICENSE
[1544]14DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
[810]15
[899]16install-doc: $(DocFiles)
[810]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
[863]23uninstall-doc:
[810]24        for file in $(DocFiles); do \
25          rm -f "$(DESTDIR)$(DocInstallDir)/$$file"; \
26        done
27
28########################################################################
[1]29#                         Maintainer Stuff                             #
30########################################################################
31
32if 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
[3]39$(AUX_DIR)/install-sh: $(BUILDTOOLSDIR)/install-sh
[1]40        cp $< $@
41
[3]42$(AUX_DIR)/missing: $(BUILDTOOLSDIR)/missing
[1]43        cp $< $@
44
[3]45$(AUX_DIR)/config.guess: $(BUILDTOOLSDIR)/config.guess
[1]46        cp $< $@
47
[3]48$(AUX_DIR)/config.sub: $(BUILDTOOLSDIR)/config.sub
[1]49        cp $< $@
50
[3]51$(AUX_DIR)/depcomp: $(BUILDTOOLSDIR)/depcomp
[1]52        cp $< $@
53
[3]54$(AUX_DIR)/ltmain.sh: $(BUILDTOOLSDIR)/ltmain.sh
[1]55        cp $< $@
[3]56
[2105]57# Take care of updating externals (if Dependencies file exists)
[3]58if HAVE_EXTERNALS
[2105]59$(top_builddir)/Makefile: .Dependencies-stamp
[3]60
[2105]61.Dependencies-stamp: $(srcdir)/Dependencies
62        cd $(srcdir); BuildTools/set_externals Dependencies
63        touch .Dependencies-stamp
[3]64
[2105]65update-externals: .Dependencies-stamp
[7]66        cd $(srcdir); svn update
67
[33]68endif
[5]69
[33]70endif
71
72if HAVE_EXTERNALS
[2105]73EXTRA_DIST += Dependencies
74DISTCLEANFILES += .Dependencies-stamp
[3]75endif
76
[33]77DISTCLEANFILES += $(VPATH_DISTCLEANFILES)
[863]78
79.PHONY: install-doc uninstall-doc update-externals
Note: See TracBrowser for help on using the repository browser.