~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Monty Taylor
  • Date: 2008-07-13 16:05:06 UTC
  • mto: This revision was merged to the branch mainline in revision 145.
  • Revision ID: monty@inaugust.com-20080713160506-6urqp5fuz5f9o121
Fixed Bug#248136 - We create the datadir now on install and chown it to 
the MYSQL_USER if we are root.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
DISTCLEANFILES = ac_available_languages_fragment
33
33
 
34
 
# Create permission databases
35
 
init-db:                all
36
 
        $(top_builddir)/scripts/mysql_install_db
37
 
 
38
 
bin-dist:               all
39
 
        $(top_builddir)/scripts/make_binary_distribution @MAKE_BINARY_DISTRIBUTION_OPTIONS@
40
 
 
41
 
.PHONY: init-db bin-dist \
42
 
  test    test-force    test-full    test-force-full    test-force-mem \
 
34
# Create empty datadir 
 
35
install-data-local:
 
36
        $(MKDIR_P) $(DESTDIR)$(localstatedir) 
 
37
        @if test `id -u` = 0 ; then \
 
38
                chown $(MYSQLD_USER) $(DESTDIR)$(localstatedir) ;\
 
39
        fi
 
40
 
 
41
.PHONY: test    test-force    test-full    test-force-full    test-force-mem \
43
42
  test-pl test-force-pl test-full-pl test-force-full-pl test-force-pl-mem \
44
43
  test-ps test-nr test-pr test-ns test-binlog-statement \
45
44
  test-ext-funcs test-ext-rpl test-ext-jp \