Makefile.am 2.88 KB
Newer Older
lenz@mysql.com's avatar
lenz@mysql.com committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
bk@work.mysql.com's avatar
bk@work.mysql.com committed
16

17
noinst_SCRIPTS =	generate-text-files.pl
bk@work.mysql.com's avatar
bk@work.mysql.com committed
18

19
EXTRA_DIST =		$(noinst_SCRIPTS) manual.chm mysql.info INSTALL-BINARY
bk@work.mysql.com's avatar
bk@work.mysql.com committed
20

kent@mysql.com's avatar
kent@mysql.com committed
21
TXT_FILES=		../INSTALL-SOURCE ../INSTALL-WIN-SOURCE ../EXCEPTIONS-CLIENT \
22
			INSTALL-BINARY ../support-files/MacOSX/ReadMe.txt
bk@work.mysql.com's avatar
bk@work.mysql.com committed
23

kent@mysql.com's avatar
kent@mysql.com committed
24 25
all-local:		$(TXT_FILES)

lenz@mysql.com's avatar
lenz@mysql.com committed
26 27 28
# make sure that "make install" installs the info page, too
# automake only seems to take care of this automatically,
# if we're building the info page from texi directly.
29
install-data-hook:	$(srcdir)/mysql.info
lenz@mysql.com's avatar
lenz@mysql.com committed
30 31 32
	$(mkinstalldirs) $(DESTDIR)$(infodir)
	$(INSTALL_DATA) $(srcdir)/mysql.info $(DESTDIR)$(infodir)

kent@mysql.com's avatar
kent@mysql.com committed
33 34 35
uninstall-local:
	@RM@ -f $(DESTDIR)$(infodir)/mysql.info

36 37 38 39 40
# Problems with "make distclean", works differently for make files
# generated by different versions of the automake. Some require the
# generated files explicitly in DISTCLEANFILES.
DISTCLEANFILES = $(TXT_FILES)

kent@mysql.com's avatar
kent@mysql.com committed
41 42 43
# This target is not used in builds, just for convinience
CLEAN_FILES:		$(TXT_FILES)
	touch $(TXT_FILES)
bk@work.mysql.com's avatar
bk@work.mysql.com committed
44

45
GT = $(srcdir)/generate-text-files.pl
bk@work.mysql.com's avatar
bk@work.mysql.com committed
46

47
../INSTALL-SOURCE:	$(srcdir)/mysql.info $(GT)
48
	perl -w $(GT) $(srcdir)/mysql.info "installing-source" "windows-source-build" > $@
bk@work.mysql.com's avatar
bk@work.mysql.com committed
49

50
../INSTALL-WIN-SOURCE:	$(srcdir)/mysql.info $(GT)
51
	perl -w $(GT) $(srcdir)/mysql.info "windows-source-build" "post-installation" > $@
52

bk@work.mysql.com's avatar
bk@work.mysql.com committed
53 54 55
# We put the description for the binary installation here so that
# people who download source wont have to see it. It is moved up to
# the toplevel by the script that makes the binary tar files.
56
INSTALL-BINARY:	$(srcdir)/mysql.info $(GT)
57
	perl -w $(GT) $(srcdir)/mysql.info "installing-binary" "installing-source" > $@
bk@work.mysql.com's avatar
bk@work.mysql.com committed
58

59
../EXCEPTIONS-CLIENT: $(srcdir)/mysql.info $(GT)
60
	perl -w $(GT) $(srcdir)/mysql.info "mysql-floss-license-exception" "function-index" > $@
bk@work.mysql.com's avatar
bk@work.mysql.com committed
61

62
../support-files/MacOSX/ReadMe.txt:	$(srcdir)/mysql.info $(GT)
63
	perl -w $(GT) $(srcdir)/mysql.info "mac-os-x-installation" "netware-installation" > $@
64

65 66 67 68
# Include the Windows manual.chm in source .tar.gz only if available.
# It is not in BitKeeper, but is downloaded from intranet by Bootstrap.
dist-hook:
	if [ -e $(srcdir)/manual.chm ] ; then \
69
	  cp -f $(srcdir)/manual.chm $(distdir); \
70 71
	fi

72 73
# Don't update the files from bitkeeper
%::SCCS/s.%