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
|
# Copyright (C) 2006, 2007 International Business Machines and others.
# All Rights Reserved.
# This file is distributed under the Common Public License.
## $Id: Makemain.inc 927 2008-01-30 21:03:18Z andreasw $
# Author: Andreas Waechter IBM 2006-04-13
########################################################################
# Documentation installation #
########################################################################
DocFiles = README AUTHORS LICENSE
DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
install-doc: $(DocFiles)
test -z "$(DocInstallDir)" || $(mkdir_p) "$(DESTDIR)$(DocInstallDir)"
for file in $(DocFiles); do \
if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
if test -f "$$dir$$file"; then $(INSTALL_DATA) "$$dir$$file" "$(DESTDIR)$(DocInstallDir)/$$file"; fi; \
done
uninstall-doc:
for file in $(DocFiles); do \
rm -f "$(DESTDIR)$(DocInstallDir)/$$file"; \
done
########################################################################
# Maintainer Stuff #
########################################################################
if MAINTAINER_MODE
# Make sure acinclude is using most recent coin.m4
$(srcdir)/acinclude.m4: $(BUILDTOOLSDIR)/coin.m4
cat $(LIBTOOLM4) $< > $@
# Make sure the autotools scripts are up to date
$(AUX_DIR)/install-sh: $(BUILDTOOLSDIR)/install-sh
cp $< $@
$(AUX_DIR)/missing: $(BUILDTOOLSDIR)/missing
cp $< $@
$(AUX_DIR)/config.guess: $(BUILDTOOLSDIR)/config.guess
cp $< $@
$(AUX_DIR)/config.sub: $(BUILDTOOLSDIR)/config.sub
cp $< $@
$(AUX_DIR)/depcomp: $(BUILDTOOLSDIR)/depcomp
cp $< $@
$(AUX_DIR)/ltmain.sh: $(BUILDTOOLSDIR)/ltmain.sh
cp $< $@
# Take care of updating externals (if Externals file exists)
if HAVE_EXTERNALS
$(top_builddir)/Makefile: .Externals-stamp
.Externals-stamp: $(srcdir)/Externals
cd $(srcdir); svn propset svn:externals -F Externals .
touch .Externals-stamp
update-externals: .Externals-stamp
cd $(srcdir); svn update
endif
endif
if HAVE_EXTERNALS
EXTRA_DIST += Externals
DISTCLEANFILES += .Externals-stamp
endif
DISTCLEANFILES += $(VPATH_DISTCLEANFILES)
.PHONY: install-doc uninstall-doc update-externals
|