summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-29 19:58:26 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-29 19:58:26 +0000
commiteab53cdb7d4564024793e2a1492af87bd3fae903 (patch)
treecd5c66917948dcc72edf7615db2713d556fbd024
parentd18532ff249b40252a80648a4811a9401f4ad37b (diff)
downloadhercules-eab53cdb7d4564024793e2a1492af87bd3fae903.tar.gz
hercules-eab53cdb7d4564024793e2a1492af87bd3fae903.tar.bz2
hercules-eab53cdb7d4564024793e2a1492af87bd3fae903.tar.xz
hercules-eab53cdb7d4564024793e2a1492af87bd3fae903.zip
* Makefile creating the conf/import forder.
You can update your Makefile by running configure again ('make help' for a list of available targets) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11610 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--Makefile.in30
2 files changed, 21 insertions, 10 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index bc418daf2..ddee23428 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2007/10/29
+ * Makefile creating the conf/import forder. [FlavioJS]
* command code cleaning (refer to topic:169759) [ultramage]
- separated the execution part of command code into interface part
and internal part to better see which checks are done and when
diff --git a/Makefile.in b/Makefile.in
index d81463eca..ac121ff24 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -2,15 +2,15 @@
HAVE_MYSQL=@HAVE_MYSQL@
ifeq ($(HAVE_MYSQL),yes)
- ALL_DEPENDS=common common_sql login login_sql char char_sql map map_sql ladmin tools converters plugins save
- SQL_DEPENDS=common_sql login_sql char_sql map_sql save
+ ALL_DEPENDS=common common_sql login login_sql char char_sql map map_sql ladmin tools converters plugins import save
+ SQL_DEPENDS=common_sql login_sql char_sql map_sql import save
COMMON_SQL_DEPENDS=
LOGIN_SQL_DEPENDS=common_sql
CHAR_SQL_DEPENDS=common_sql
MAP_SQL_DEPENDS=common_sql
CONVERTERS_DEPENDS=common_sql
else
- ALL_DEPENDS=common login char map ladmin tools plugins save
+ ALL_DEPENDS=common login char map ladmin tools plugins import save
SQL_DEPENDS=needs_mysql
COMMON_SQL_DEPENDS=needs_mysql
LOGIN_SQL_DEPENDS=needs_mysql
@@ -21,11 +21,11 @@ endif
#####################################################################
.PHONY: txt sql common common_sql login login_sql char char_sql map map_sql \
- ladmin tools converters plugins addons save clean help depend
+ ladmin tools converters plugins addons import save clean help depend
all: $(ALL_DEPENDS)
-txt: common login char map conf
+txt: common login char map import save
sql: $(SQL_DEPENDS)
@@ -65,6 +65,15 @@ converters: $(CONVERTERS_DEPENDS)
plugins addons: common
@$(MAKE) -C src/plugins
+import:
+# 1) create conf/import folder
+# 2) add missing files
+# 3) remove remaining .svn folder
+ @echo "building conf/import folder..."
+ @if test ! -d conf/import ; then mkdir conf/import ; fi
+ @for f in $$(ls conf/import-tmpl) ; do if test ! -e conf/import/$$f ; then cp conf/import-tmpl/$$f conf/import ; fi ; done
+ @rm -rf conf/import/.svn
+
save:
# 1) create save folder
# 2) add missing files
@@ -102,12 +111,13 @@ help:
@echo "'converters' - builds the login/char converters"
@echo "'plugins' - builds all the plugins in src/plugins"
@echo "'addons'"
- @echo "'save' - builds save folder from the template"
- @echo "'all' - builds all above targets"
- @echo "'txt' - builds txt servers (targets 'common' 'login' 'char' 'map' and"
- @echo " 'save')"
+ @echo "'import' - builds conf/import folder from the template conf/import-tmpl"
+ @echo "'save' - builds save folder from the template save-tmpl"
+ @echo "'all' - builds all the above targets"
+ @echo "'txt' - builds txt servers (targets 'common' 'login' 'char' 'map'"
+ @echo " 'import' and 'save')"
@echo "'sql' - builds sql servers (targets 'common_sql' 'login_sql' 'char_sql'"
- @echo " and 'map_sql')"
+ @echo " 'map_sql' 'import' and 'save')"
@echo "'clean' - cleans builds and objects"
@echo "'help' - outputs this message"