Commit 5c3c4079 authored by unknown's avatar unknown
Browse files

small Makefile.am cleanup

    clean: targets removed
    generated *.h files moved to include/


Docs/Images/Makefile.am:
  no clean: targets please!
client/Makefile.am:
  generated *.h files moved to include/
extra/Makefile.am:
  generated *.h files moved to include/
include/Makefile.am:
  no clean: targets please!
libmysql/Makefile.am:
  generated *.h files moved to include/
libmysql_r/Makefile.am:
  generated *.h files moved to include/
libmysqld/Makefile.am:
  generated *.h files moved to include/
libmysqld/examples/Makefile.am:
  generated *.h files moved to include/
  no clean: target please!
ndb/docs/Makefile.am:
  no clean: targets please!
scripts/Makefile.am:
  SUPERCLEANFILES means nothing
server-tools/instance-manager/Makefile.am:
  generated *.h files moved to include/
sql/Makefile.am:
  generated *.h files moved to include/
sql/share/Makefile.am:
  instead of (incorrectly) duplicating comp_err command line,
  call do make in extra/
tools/Makefile.am:
  generated *.h files moved to include/
BitKeeper/etc/ignore:
  Added include/mysqld_ername.h include/mysqld_error.h include/sql_state.h to the ignore list
parent 085f7072
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1052,3 +1052,6 @@ vio/test-ssl
vio/test-sslclient
vio/test-sslserver
vio/viotest-ssl
include/mysqld_ername.h
include/mysqld_error.h
include/sql_state.h
+0 −4
Original line number Diff line number Diff line
@@ -27,9 +27,5 @@ EXTRA_DIST =
all:
	:

# Nothing to cleanup in this dummy directory.
clean:
	:

# Don't update the files from bitkeeper
%::SCCS/s.%
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@

#AUTOMAKE_OPTIONS =              nostdinc
INCLUDES =			-I$(top_srcdir)/include -I$(top_srcdir)/regex \
				$(openssl_includes) -I$(top_srcdir)/extra
				$(openssl_includes) -I$(top_builddir)/include
LIBS =				@CLIENT_LIBS@
LDADD=				@CLIENT_EXTRA_LDFLAGS@ \
                                $(top_builddir)/libmysql/libmysqlclient.la
+15 −14
Original line number Diff line number Diff line
@@ -16,25 +16,26 @@

INCLUDES =		@MT_INCLUDES@ -I$(top_srcdir)/include \
			@ndbcluster_includes@ -I$(top_srcdir)/sql \
			-I$(top_srcdir)/extra
			-I$(top_builddir)/include
LDADD =			@CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
			../dbug/libdbug.a ../strings/libmystrings.a
BUILT_SOURCES=		mysqld_error.h sql_state.h mysqld_ername.h
BUILT_SOURCES=		$(top_builddir)/include/mysqld_error.h \
                        $(top_builddir)/include/sql_state.h \
                        $(top_builddir)/include/mysqld_ername.h
pkginclude_HEADERS=	$(BUILT_SOURCES)
created_sources = 	created_include_files
CLEANFILES =		$(created_sources)
SUPERCLEANFILES =	$(BUILT_SOURCES)

all: $(created_sources)
CLEANFILES =		$(BUILT_SOURCES)

# This will build mysqld_error.h and sql_state.h
mysqld_error.h: created_include_files
mysqld_ername.h: created_include_files
sql_state.h:	created_include_files

created_include_files: comp_err
	$(top_builddir)/extra/comp_err --charset=$(srcdir)/../sql/share/charsets --out-dir=$(top_builddir)/sql/share/ --header_file=$(top_builddir)/extra/mysqld_error.h --name_file=$(top_builddir)/extra/mysqld_ername.h --state_file=$(top_builddir)/extra/sql_state.h --in_file=$(srcdir)/../sql/share/errmsg.txt
	touch created_include_files
$(top_builddir)/include/mysqld_error.h: comp_err
	$(top_builddir)/extra/comp_err \
	--charset=$(top_srcdir)/sql/share/charsets \
	--out-dir=$(top_builddir)/sql/share/ \
	--header_file=$(top_builddir)/include/mysqld_error.h \
	--name_file=$(top_builddir)/include/mysqld_ername.h \
	--state_file=$(top_builddir)/include/sql_state.h \
	--in_file=$(top_srcdir)/sql/share/errmsg.txt
$(top_builddir)/include/mysqld_ername.h: $(top_builddir)/include/mysqld_error.h
$(top_builddir)/include/sql_state.h: $(top_builddir)/include/mysqld_error.h

bin_PROGRAMS =		replace comp_err perror resolveip my_print_defaults \
			resolve_stack_dump mysql_waitpid
+2 −7
Original line number Diff line number Diff line
@@ -33,15 +33,10 @@ noinst_HEADERS = config-win.h config-os2.h config-netware.h \
			mysql_version.h.in my_handler.h my_time.h decimal.h

# mysql_version.h are generated
SUPERCLEANFILES =	mysql_version.h my_config.h
CLEANFILES =            mysql_version.h my_config.h readline

# Some include files that may be moved and patched by configure
DISTCLEANFILES =	sched.h $(SUPERCLEANFILES)

clean:
	$(RM) -fr readline
distclean:
	$(RM) -fr readline
DISTCLEANFILES =	sched.h $(CLEANFILES)

all-local:		my_config.h

Loading