2
0

Imakefile 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. XCOMM $TOG: Imakefile /main/17 1998/03/19 09:46:16 mgreess $
  2. /*
  3. * Construct the installation database files for CDE
  4. */
  5. /*
  6. * Trigger different installation behavior for HPUX 10.0 and later.
  7. */
  8. #if defined (HPArchitecture) && (OSMajorVersion > 9)
  9. UDB_RELEASE_OPT = -ReleaseStream hpux
  10. #endif
  11. #ifdef SunArchitecture
  12. UDB_RELEASE_OPT = -ReleaseStream sun
  13. #endif
  14. #ifdef RsArchitecture
  15. UDB_RELEASE_OPT = -ReleaseStream aix
  16. #endif
  17. #ifdef AlphaArchitecture
  18. UDB_RELEASE_OPT = -ReleaseStream dec
  19. #endif
  20. #ifdef USLArchitecture
  21. UDB_RELEASE_OPT = -ReleaseStream usl
  22. #endif
  23. #ifdef UXPArchitecture
  24. UDB_RELEASE_OPT = -ReleaseStream uxp
  25. #endif
  26. #ifdef LinuxArchitecture
  27. UDB_RELEASE_OPT = -ReleaseStream linux
  28. #endif
  29. #ifdef OpenBSDArchitecture
  30. UDB_RELEASE_OPT = -ReleaseStream openbsd
  31. #endif
  32. #ifdef FreeBSDArchitecture
  33. UDB_RELEASE_OPT = -ReleaseStream freebsd
  34. #endif
  35. #ifdef NetBSDArchitecture
  36. UDB_RELEASE_OPT = -ReleaseStream netbsd
  37. #endif
  38. /*
  39. * Insure that symbols used in the .udb files are undefined for
  40. * pre-processing by cpp.
  41. */
  42. UDB_CPP_UNDEF_LIST = -UhpV4 -Uhpux -Uaix -Usun -Uusl -Udec -Uuxp -Uunix -Ulinux -Uopenbsd -Ufreebsd -Unetbsd
  43. #define CreateLocalizedFilesets(Locale,Lang,readablename,runfs,helpfs,msgfs,AltLang,HelpLang,ResDB,HelpDB,MsgDB,InfoDB) @@\
  44. clean:: @@\
  45. $(RM) Concat3(CDE-,Locale,.udb) @@\
  46. @@\
  47. Concat3(CDE-,Locale,.udb):: ResDB @@\
  48. @echo Building readablename Resources database file. @@\
  49. @rm -f $@ @@\
  50. @echo $(SED) -e STR(s/%_LANG_%/Lang/g) \ @@\
  51. -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
  52. -e STR(s/%_FILENAME_%/runfs/g) ResDB @@\
  53. @$(SED) -e STR(s/%_LANG_%/Lang/g) \ @@\
  54. -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
  55. -e STR(s/%_FILENAME_%/runfs/g) ResDB > $@ @@\
  56. @@\
  57. clean:: @@\
  58. $(RM) Concat3(CDE-HELP-,Locale,.udb) @@\
  59. @@\
  60. CDE-HELP-Locale.udb:: HelpDB @@\
  61. @echo Building readablename Help database file. @@\
  62. @rm -f $@ @@\
  63. @echo $(SED) -e STR(s/%_LANG_%/HelpLang/) \ @@\
  64. -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
  65. -e STR(s/%_FILENAME_%/helpfs/g) HelpDB @@\
  66. @$(SED) -e STR(s/%_LANG_%/HelpLang/) \ @@\
  67. -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
  68. -e STR(s/%_FILENAME_%/helpfs/g) HelpDB > $@ @@\
  69. @@\
  70. clean:: @@\
  71. $(RM) Concat3(CDE-MSG-,Locale,.udb) @@\
  72. @@\
  73. CDE-MSG-Locale.udb:: MsgDB @@\
  74. @echo Building readablename Message catalog database file. @@\
  75. @rm -f $@ @@\
  76. @echo $(SED) -e STR(s/%_LANG_%/Lang/) \ @@\
  77. -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
  78. -e STR(s/%_FILENAME_%/msgfs/g) MsgDB @@\
  79. @$(SED) -e STR(s/%_LANG_%/Lang/) \ @@\
  80. -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
  81. -e STR(s/%_FILENAME_%/msgfs/g) MsgDB > $@ @@\
  82. @@\
  83. clean:: @@\
  84. $(RM) Concat3(CDE-INFOLIB-,Locale,.udb) @@\
  85. @@\
  86. CDE-INFOLIB-Locale.udb:: InfoDB @@\
  87. @echo Building readablename Infolib catalog database file. @@\
  88. @rm -f $@ @@\
  89. @echo $(SED) -e STR(s/%_LANG_%/Lang/) \ @@\
  90. -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
  91. -e STR(s/%_FILENAME_%/msgfs/g) InfoDB @@\
  92. @$(SED) -e STR(s/%_LANG_%/Lang/) \ @@\
  93. -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
  94. -e STR(s/%_FILENAME_%/msgfs/g) InfoDB > $@
  95. .SUFFIXES: .db .udb
  96. TOOLSRC=../
  97. DBTOOLS=admin/IntegTools/dbTools
  98. CONVERSION= -toDB
  99. .udb.db:
  100. @echo "making $*.db"
  101. @$(RM) $*.db
  102. $(KORNSHELL) $(TOOLSRC)/$(DBTOOLS)/udbToAny.ksh $(CONVERSION) $(UDB_RELEASE_OPT) $< > $*.db
  103. all::
  104. CppSourceFile(CDE-SHLIBS.udb,CDE-SHLIBS.src,$(UDB_CPP_UNDEF_LIST),)
  105. UDBS = \
  106. CDE-DEMOS.udb \
  107. CDE-FONTS.udb \
  108. CDE-HELP-PRG.udb \
  109. CDE-HELP-RUN.udb \
  110. CDE-ICONS.udb \
  111. CDE-INC.udb \
  112. CDE-INFO.udb \
  113. CDE-MAN.udb \
  114. CDE-MAN-DEV.udb \
  115. CDE-MIN.udb \
  116. CDE-PRG.udb \
  117. CDE-RUN.udb \
  118. CDE-SHLIBS.udb \
  119. CDE-TT.udb \
  120. CDE-C.udb \
  121. CDE-DE.udb \
  122. CDE-ES.udb \
  123. CDE-FR.udb \
  124. CDE-IT.udb \
  125. CDE-JP.udb \
  126. CDE-HELP-C.udb \
  127. CDE-HELP-DE.udb \
  128. CDE-HELP-ES.udb \
  129. CDE-HELP-FR.udb \
  130. CDE-HELP-IT.udb \
  131. CDE-HELP-JP.udb \
  132. CDE-INFOLIB-C.udb \
  133. CDE-INFOLIB-DE.udb \
  134. CDE-INFOLIB-ES.udb \
  135. CDE-INFOLIB-FR.udb \
  136. CDE-INFOLIB-IT.udb \
  137. CDE-INFOLIB-JP.udb \
  138. CDE-MSG-C.udb \
  139. CDE-MSG-DE.udb \
  140. CDE-MSG-ES.udb \
  141. CDE-MSG-FR.udb \
  142. CDE-MSG-IT.udb \
  143. CDE-MSG-JP.udb
  144. DBS = \
  145. CDE-DEMOS.db \
  146. CDE-FONTS.db \
  147. CDE-HELP-PRG.db \
  148. CDE-HELP-RUN.db \
  149. CDE-ICONS.db \
  150. CDE-INC.db \
  151. CDE-INFO.db \
  152. CDE-MAN.db \
  153. CDE-MAN-DEV.db \
  154. CDE-MIN.db \
  155. CDE-PRG.db \
  156. CDE-RUN.db \
  157. CDE-SHLIBS.db \
  158. CDE-TT.db \
  159. CDE-C.db \
  160. CDE-DE.db \
  161. CDE-ES.db \
  162. CDE-FR.db \
  163. CDE-IT.db \
  164. CDE-JP.db \
  165. CDE-HELP-C.db \
  166. CDE-HELP-DE.db \
  167. CDE-HELP-ES.db \
  168. CDE-HELP-FR.db \
  169. CDE-HELP-IT.db \
  170. CDE-HELP-JP.db \
  171. CDE-INFOLIB-C.db \
  172. CDE-INFOLIB-DE.db \
  173. CDE-INFOLIB-ES.db \
  174. CDE-INFOLIB-FR.db \
  175. CDE-INFOLIB-IT.db \
  176. CDE-INFOLIB-JP.db \
  177. CDE-MSG-C.db \
  178. CDE-MSG-DE.db \
  179. CDE-MSG-ES.db \
  180. CDE-MSG-FR.db \
  181. CDE-MSG-IT.db \
  182. CDE-MSG-JP.db
  183. clean::
  184. $(RM) *.db
  185. #if defined UTF8_NLS_SUPPORT
  186. # define UTF8_NLS_SUPPORT_OPT -DUTF8_NLS_SUPPORT
  187. #else
  188. # define UTF8_NLS_SUPPORT_OPT /**/
  189. #endif
  190. /*
  191. * Default locale (C)
  192. */
  193. LOC_CPP_LIST = $(UDB_CPP_UNDEF_LIST) -D_ENGLISH_ UTF8_NLS_SUPPORT_OPT
  194. CppSourceFile(CDE-LOC-C.tmp,CDE-LOC.src,$(LOC_CPP_LIST),)
  195. CppSourceFile(CDE-HELP-LOC-C.tmp,CDE-HELP-LOC.src,$(LOC_CPP_LIST),)
  196. CppSourceFile(CDE-MSG-LOC-C.tmp,CDE-MSG-LOC.src,$(LOC_CPP_LIST),)
  197. CppSourceFile(CDE-INFOLIB-LOC-C.tmp,CDE-INFOLIB-LOC.src,$(LOC_CPP_LIST) $(MOTIF_DOC),)
  198. CreateLocalizedFilesets(C,C,C,CDE-RUN,CDE-ENG-A-HELP,CDE-ENG-A-MSG,C,C,CDE-LOC-C.tmp,CDE-HELP-LOC-C.tmp,CDE-MSG-LOC-C.tmp,CDE-INFOLIB-LOC-C.tmp)
  199. /*
  200. * German
  201. */
  202. DE_LOC_CPP_LIST = $(UDB_CPP_UNDEF_LIST) -D_GERMAN_
  203. CppSourceFile(CDE-LOC-DE.tmp,CDE-LOC.src,$(DE_LOC_CPP_LIST),)
  204. CppSourceFile(CDE-HELP-LOC-DE.tmp,CDE-HELP-LOC.src,$(DE_LOC_CPP_LIST),)
  205. CppSourceFile(CDE-MSG-LOC-DE.tmp,CDE-MSG-LOC.src,$(DE_LOC_CPP_LIST),)
  206. CppSourceFile(CDE-INFOLIB-LOC-DE.tmp,CDE-INFOLIB-LOC.src,$(DE_LOC_CPP_LIST),)
  207. CreateLocalizedFilesets(DE,de_DE.ISO8859-1,German,CDE-LANGS,CDE-GER-I-HELP,CDE-GER-I-MSG,de_DE.ISO8859-1,de_DE.ISO8859-1,CDE-LOC-DE.tmp,CDE-HELP-LOC-DE.tmp,CDE-MSG-LOC-DE.tmp,CDE-INFOLIB-LOC-DE.tmp)
  208. /*
  209. * Spanish
  210. */
  211. ES_LOC_CPP_LIST = $(UDB_CPP_UNDEF_LIST) -D_SPANISH_
  212. CppSourceFile(CDE-LOC-ES.tmp,CDE-LOC.src,$(ES_LOC_CPP_LIST),)
  213. CppSourceFile(CDE-HELP-LOC-ES.tmp,CDE-HELP-LOC.src,$(ES_LOC_CPP_LIST),)
  214. CppSourceFile(CDE-MSG-LOC-ES.tmp,CDE-MSG-LOC.src,$(ES_LOC_CPP_LIST),)
  215. CppSourceFile(CDE-INFOLIB-LOC-ES.tmp,CDE-INFOLIB-LOC.src,$(ES_LOC_CPP_LIST),)
  216. CreateLocalizedFilesets(ES,es_ES.ISO8859-1,Spanish,CDE-LANGS,CDE-SPA-I-HELP,CDE-SPA-I-MSG,es_ES.ISO8859-1,es_ES.ISO8859-1,CDE-LOC-ES.tmp,CDE-HELP-LOC-ES.tmp,CDE-MSG-LOC-ES.tmp,CDE-INFOLIB-LOC-ES.tmp)
  217. /*
  218. * French
  219. */
  220. FR_LOC_CPP_LIST = $(UDB_CPP_UNDEF_LIST) -D_FRENCH_
  221. CppSourceFile(CDE-LOC-FR.tmp,CDE-LOC.src,$(FR_LOC_CPP_LIST),)
  222. CppSourceFile(CDE-HELP-LOC-FR.tmp,CDE-HELP-LOC.src,$(FR_LOC_CPP_LIST),)
  223. CppSourceFile(CDE-MSG-LOC-FR.tmp,CDE-MSG-LOC.src,$(FR_LOC_CPP_LIST),)
  224. CppSourceFile(CDE-INFOLIB-LOC-FR.tmp,CDE-INFOLIB-LOC.src,$(FR_LOC_CPP_LIST),)
  225. CreateLocalizedFilesets(FR,fr_FR.ISO8859-1,French,CDE-LANGS,CDE-FRE-I-HELP,CDE-FRE-I-MSG,fr_FR.ISO8859-1,fr_FR.ISO8859-1,CDE-LOC-FR.tmp,CDE-HELP-LOC-FR.tmp,CDE-MSG-LOC-FR.tmp,CDE-INFOLIB-LOC-FR.tmp)
  226. /*
  227. * Italian
  228. */
  229. IT_LOC_CPP_LIST = $(UDB_CPP_UNDEF_LIST) -D_ITALIAN_
  230. CppSourceFile(CDE-LOC-IT.tmp,CDE-LOC.src,$(IT_LOC_CPP_LIST),)
  231. CppSourceFile(CDE-HELP-LOC-IT.tmp,CDE-HELP-LOC.src,$(IT_LOC_CPP_LIST),)
  232. CppSourceFile(CDE-MSG-LOC-IT.tmp,CDE-MSG-LOC.src,$(IT_LOC_CPP_LIST),)
  233. CppSourceFile(CDE-INFOLIB-LOC-IT.tmp,CDE-INFOLIB-LOC.src,$(IT_LOC_CPP_LIST),)
  234. CreateLocalizedFilesets(IT,it_IT.ISO8859-1,Italian,CDE-LANGS,CDE-ITA-I-HELP,CDE-ITA-I-MSG,it_IT.ISO8859-1,it_IT.ISO8859-1,CDE-LOC-IT.tmp,CDE-HELP-LOC-IT.tmp,CDE-MSG-LOC-IT.tmp,CDE-INFOLIB-LOC-IT.tmp)
  235. /*
  236. * Japanese
  237. */
  238. JP_LOC_CPP_LIST = $(UDB_CPP_UNDEF_LIST) -D_JAPANESE_
  239. CppSourceFile(CDE-LOC-JP.tmp,CDE-LOC.src,$(JP_LOC_CPP_LIST),)
  240. CppSourceFile(CDE-HELP-LOC-JP.tmp,CDE-HELP-LOC.src,$(JP_LOC_CPP_LIST),)
  241. CppSourceFile(CDE-MSG-LOC-JP.tmp,CDE-MSG-LOC.src,$(JP_LOC_CPP_LIST),)
  242. CppSourceFile(CDE-INFOLIB-LOC-JP.tmp,CDE-INFOLIB-LOC.src,$(JP_LOC_CPP_LIST) $(MOTIF_DOC),)
  243. CreateLocalizedFilesets(JP,ja_JP.dt-eucJP,Japanese EUC,CDE-LANGS,CDE-JPN-E-HELP,CDE-JPN-E-MSG,ja_JP.dt-eucJP,ja_JP.dt-eucJP,CDE-LOC-JP.tmp,CDE-HELP-LOC-JP.tmp,CDE-MSG-LOC-JP.tmp,CDE-INFOLIB-LOC-JP.tmp)
  244. $(DBS):: $(UDBS)
  245. includes:: $(DBS)
  246. all:: $(DBS)