aboutsummaryrefslogtreecommitdiff
path: root/sql/tools
diff options
context:
space:
mode:
Diffstat (limited to 'sql/tools')
-rw-r--r--sql/tools/CMakeLists.txt4
-rw-r--r--sql/tools/Makefile.am38
2 files changed, 41 insertions, 1 deletions
diff --git a/sql/tools/CMakeLists.txt b/sql/tools/CMakeLists.txt
index bcf0c7a8343..d69a6cdbd2b 100644
--- a/sql/tools/CMakeLists.txt
+++ b/sql/tools/CMakeLists.txt
@@ -1,4 +1,6 @@
########### install files ###############
-install(FILES characters_item_duplicates_remove.sql characters_pet_data_cleanup.sql README DESTINATION share/trinity/sql/tools)
+FILE(GLOB _SQL_TOOLS *.sql)
+
+install(FILES ${_SQL_TOOLS} README DESTINATION share/trinity/sql/tools)
diff --git a/sql/tools/Makefile.am b/sql/tools/Makefile.am
new file mode 100644
index 00000000000..c15007f86ed
--- /dev/null
+++ b/sql/tools/Makefile.am
@@ -0,0 +1,38 @@
+# Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
+#
+# Copyright (C) 2008-2009 Trinity <http://www.trinitycore.org/>
+#
+# 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
+
+## Process this file with automake to produce Makefile.in
+
+## Sub-directories to parse
+
+## Change installation location
+# datadir = trinity/sql/tools
+pkgdatadir = $(datadir)/trinity/sql/tools
+
+## Files to be installed
+# Install basic SQL files to datadir
+pkgdata_DATA = \
+ characters_item_duplicates_remove.sql \
+ characters_pet_data_cleanup.sql \
+ README
+
+## Additional files to include when running 'make dist'
+EXTRA_DIST = \
+ characters_item_duplicates_remove.sql \
+ characters_pet_data_cleanup.sql \
+ README