Diff

tools/migration/Makefile @ 4229:f15b4e9ba688

tools/migration: Rename main.lua -> prosody-migrator.lua and update the Makefile
author Matthew Wild <mwild1@gmail.com>
date Mon, 21 Mar 2011 19:39:04 +0000
parent 4224:8b8d2b8e4d0b
child 5402:cb6f0afd8468
line wrap: on
line diff
--- a/tools/migration/Makefile	Mon Mar 21 19:35:53 2011 +0000
+++ b/tools/migration/Makefile	Mon Mar 21 19:39:04 2011 +0000
@@ -14,7 +14,7 @@
 
 SOURCE_FILES = migrator/*.lua
 
-all: prosody-migrator.install migrator.cfg.lua.install main.lua $(SOURCE_FILES)
+all: prosody-migrator.install migrator.cfg.lua.install prosody-migrator.lua $(SOURCE_FILES)
 
 install: prosody-migrator.install migrator.cfg.lua.install
 	install -d $(BIN) $(CONFIG) $(SOURCE) $(SOURCE)/migrator
@@ -28,10 +28,10 @@
 	rm -f prosody-migrator.install
 	rm -f migrator.cfg.lua.install
 
-prosody-migrator.install: main.lua
+prosody-migrator.install: prosody-migrator.lua
 	sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \
 		s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|;" \
-			< main.lua > prosody-migrator.install
+			< prosody-migrator.lua > prosody-migrator.install
 
 migrator.cfg.lua.install: migrator.cfg.lua
 	sed "s|^local data_path = .*;$$|local data_path = '$(INSTALLEDDATA)';|;" \