(include_subdirs no)

(executable
 (name gen_mappings)
 (libraries str toolslib camomileLib))

(install
 (section
  (site
   (camomile mappings)))
 (files
  cns11643.mar
  gb2312.mar
  iso88597.mar
  jisx0201.mar
  jisx0208.mar
  jisx0212.mar
  ksc5601.mar))

(rule
 (targets
  cns11643.mar
  jisx0201.mar
  ksc5601.mar
  gb2312.mar
  jisx0208.mar
  iso88597.mar
  jisx0212.mar)
 (deps
  ../charmaps/sources/GB2312
  ../charmaps/sources/EUC-JP
  ../charmaps/sources/EUC-KR
  ../charmaps/sources/EUC-TW
  ../charmaps/sources/ISO-8859-7)
 (action
  (run ./gen_mappings.exe)))
