Imakefile 7.9 KB

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