Permalink
Browse files

added make rule for update flash map.

  • Loading branch information...
1 parent d5cb657 commit 78136448445bad5d148bb3c661ccf11365569e13 walf443 committed Nov 16, 2009
Showing with 21 additions and 1 deletion.
  1. +21 −1 Makefile.PL
View
@@ -7,7 +7,27 @@ recommends 'WWW::MobileCarrierJP' => 0.37;
requires 'HTTP::MobileAgent' => 0;
requires 'Class::Accessor' => 0;
-install_script 'bin/make_map_flash_lite.pl';
+
+my $make_map_script = 'bin/make_map_flash_lite.pl';
+install_script $make_map_script;
+
+my $basedir = "lib/HTTP/MobileAgent/Flash";
+
+postamble(<<GENERATE_PM);
+
+update_flash_map: pm_docomo pm_ezweb pm_softbank
+
+pm_docomo:
+\t$make_map_script --carrier=docomo --output=pm > $basedir/DoCoMoFlashMap.pm
+
+pm_ezweb:
+\t$make_map_script --carrier=ezweb --output=pm > $basedir/EZWebFlashMap.pm
+
+pm_softbank:
+\t$make_map_script --carrier=softbank --output=pm > $basedir/SoftBankFlashMap.pm
+
+
+GENERATE_PM
WriteAll;

0 comments on commit 7813644

Please sign in to comment.