123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- XCOMM $TOG: Imakefile /main/17 1998/03/19 09:46:16 mgreess $
- /*
- * Construct the installation database files for CDE
- */
- /*
- * Trigger different installation behavior for HPUX 10.0 and later.
- */
- #if defined (HPArchitecture) && (OSMajorVersion > 9)
- UDB_RELEASE_OPT = -ReleaseStream hpux
- #endif
- #ifdef SunArchitecture
- UDB_RELEASE_OPT = -ReleaseStream sun
- #endif
- #ifdef RsArchitecture
- UDB_RELEASE_OPT = -ReleaseStream aix
- #endif
- #ifdef AlphaArchitecture
- UDB_RELEASE_OPT = -ReleaseStream dec
- #endif
- #ifdef USLArchitecture
- UDB_RELEASE_OPT = -ReleaseStream usl
- #endif
- #ifdef UXPArchitecture
- UDB_RELEASE_OPT = -ReleaseStream uxp
- #endif
- #ifdef LinuxArchitecture
- UDB_RELEASE_OPT = -ReleaseStream linux
- #endif
- #ifdef OpenBSDArchitecture
- UDB_RELEASE_OPT = -ReleaseStream openbsd
- #endif
- #ifdef FreeBSDArchitecture
- UDB_RELEASE_OPT = -ReleaseStream freebsd
- #endif
- #ifdef NetBSDArchitecture
- UDB_RELEASE_OPT = -ReleaseStream netbsd
- #endif
- /*
- * Insure that symbols used in the .udb files are undefined for
- * pre-processing by cpp.
- */
- UDB_CPP_UNDEF_LIST = -UhpV4 -Uhpux -Uaix -Usun -Uusl -Udec -Uuxp -Uunix -Ulinux -Uopenbsd -Ufreebsd -Unetbsd
- #define CreateLocalizedFilesets(Locale,Lang,readablename,runfs,helpfs,msgfs,AltLang,HelpLang,ResDB,HelpDB,MsgDB,InfoDB) @@\
- clean:: @@\
- $(RM) Concat3(CDE-,Locale,.udb) @@\
- @@\
- Concat3(CDE-,Locale,.udb):: ResDB @@\
- @echo Building readablename Resources database file. @@\
- @rm -f $@ @@\
- @echo $(SED) -e STR(s/%_LANG_%/Lang/g) \ @@\
- -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
- -e STR(s/%_FILENAME_%/runfs/g) ResDB @@\
- @$(SED) -e STR(s/%_LANG_%/Lang/g) \ @@\
- -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
- -e STR(s/%_FILENAME_%/runfs/g) ResDB > $@ @@\
- @@\
- clean:: @@\
- $(RM) Concat3(CDE-HELP-,Locale,.udb) @@\
- @@\
- CDE-HELP-Locale.udb:: HelpDB @@\
- @echo Building readablename Help database file. @@\
- @rm -f $@ @@\
- @echo $(SED) -e STR(s/%_LANG_%/HelpLang/) \ @@\
- -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
- -e STR(s/%_FILENAME_%/helpfs/g) HelpDB @@\
- @$(SED) -e STR(s/%_LANG_%/HelpLang/) \ @@\
- -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
- -e STR(s/%_FILENAME_%/helpfs/g) HelpDB > $@ @@\
- @@\
- clean:: @@\
- $(RM) Concat3(CDE-MSG-,Locale,.udb) @@\
- @@\
- CDE-MSG-Locale.udb:: MsgDB @@\
- @echo Building readablename Message catalog database file. @@\
- @rm -f $@ @@\
- @echo $(SED) -e STR(s/%_LANG_%/Lang/) \ @@\
- -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
- -e STR(s/%_FILENAME_%/msgfs/g) MsgDB @@\
- @$(SED) -e STR(s/%_LANG_%/Lang/) \ @@\
- -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
- -e STR(s/%_FILENAME_%/msgfs/g) MsgDB > $@ @@\
- @@\
- clean:: @@\
- $(RM) Concat3(CDE-INFOLIB-,Locale,.udb) @@\
- @@\
- CDE-INFOLIB-Locale.udb:: InfoDB @@\
- @echo Building readablename Infolib catalog database file. @@\
- @rm -f $@ @@\
- @echo $(SED) -e STR(s/%_LANG_%/Lang/) \ @@\
- -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
- -e STR(s/%_FILENAME_%/msgfs/g) InfoDB @@\
- @$(SED) -e STR(s/%_LANG_%/Lang/) \ @@\
- -e STR(s/%_ALT_LANG_%/AltLang/g) \ @@\
- -e STR(s/%_FILENAME_%/msgfs/g) InfoDB > $@
- .SUFFIXES: .db .udb
- TOOLSRC=../
- DBTOOLS=admin/IntegTools/dbTools
- CONVERSION= -toDB
- .udb.db:
- @echo "making $*.db"
- @$(RM) $*.db
- $(KORNSHELL) $(TOOLSRC)/$(DBTOOLS)/udbToAny.ksh $(CONVERSION) $(UDB_RELEASE_OPT) $< > $*.db
- all::
- CppSourceFile(CDE-SHLIBS.udb,CDE-SHLIBS.src,$(UDB_CPP_UNDEF_LIST),)
- UDBS = \
- CDE-DEMOS.udb \
- CDE-FONTS.udb \
- CDE-HELP-PRG.udb \
- CDE-HELP-RUN.udb \
- CDE-ICONS.udb \
- CDE-INC.udb \
- CDE-INFO.udb \
- CDE-MAN.udb \
- CDE-MAN-DEV.udb \
- CDE-MIN.udb \
- CDE-PRG.udb \
- CDE-RUN.udb \
- CDE-SHLIBS.udb \
- CDE-TT.udb \
- CDE-C.udb \
- CDE-DE.udb \
- CDE-ES.udb \
- CDE-FR.udb \
- CDE-IT.udb \
- CDE-JP.udb \
- CDE-HELP-C.udb \
- CDE-HELP-DE.udb \
- CDE-HELP-ES.udb \
- CDE-HELP-FR.udb \
- CDE-HELP-IT.udb \
- CDE-HELP-JP.udb \
- CDE-INFOLIB-C.udb \
- CDE-INFOLIB-DE.udb \
- CDE-INFOLIB-ES.udb \
- CDE-INFOLIB-FR.udb \
- CDE-INFOLIB-IT.udb \
- CDE-INFOLIB-JP.udb \
- CDE-MSG-C.udb \
- CDE-MSG-DE.udb \
- CDE-MSG-ES.udb \
- CDE-MSG-FR.udb \
- CDE-MSG-IT.udb \
- CDE-MSG-JP.udb
- DBS = \
- CDE-DEMOS.db \
- CDE-FONTS.db \
- CDE-HELP-PRG.db \
- CDE-HELP-RUN.db \
- CDE-ICONS.db \
- CDE-INC.db \
- CDE-INFO.db \
- CDE-MAN.db \
- CDE-MAN-DEV.db \
- CDE-MIN.db \
- CDE-PRG.db \
- CDE-RUN.db \
- CDE-SHLIBS.db \
- CDE-TT.db \
- CDE-C.db \
- CDE-DE.db \
- CDE-ES.db \
- CDE-FR.db \
- CDE-IT.db \
- CDE-JP.db \
- CDE-HELP-C.db \
- CDE-HELP-DE.db \
- CDE-HELP-ES.db \
- CDE-HELP-FR.db \
- CDE-HELP-IT.db \
- CDE-HELP-JP.db \
- CDE-INFOLIB-C.db \
- CDE-INFOLIB-DE.db \
- CDE-INFOLIB-ES.db \
- CDE-INFOLIB-FR.db \
- CDE-INFOLIB-IT.db \
- CDE-INFOLIB-JP.db \
- CDE-MSG-C.db \
- CDE-MSG-DE.db \
- CDE-MSG-ES.db \
- CDE-MSG-FR.db \
- CDE-MSG-IT.db \
- CDE-MSG-JP.db
- clean::
- $(RM) *.db
- #if defined UTF8_NLS_SUPPORT
- # define UTF8_NLS_SUPPORT_OPT -DUTF8_NLS_SUPPORT
- #else
- # define UTF8_NLS_SUPPORT_OPT /**/
- #endif
- /*
- * Default locale (C)
- */
- LOC_CPP_LIST = $(UDB_CPP_UNDEF_LIST) -D_ENGLISH_ UTF8_NLS_SUPPORT_OPT
- CppSourceFile(CDE-LOC-C.tmp,CDE-LOC.src,$(LOC_CPP_LIST),)
- CppSourceFile(CDE-HELP-LOC-C.tmp,CDE-HELP-LOC.src,$(LOC_CPP_LIST),)
- CppSourceFile(CDE-MSG-LOC-C.tmp,CDE-MSG-LOC.src,$(LOC_CPP_LIST),)
- CppSourceFile(CDE-INFOLIB-LOC-C.tmp,CDE-INFOLIB-LOC.src,$(LOC_CPP_LIST) $(MOTIF_DOC),)
- 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)
- /*
- * German
- */
- DE_LOC_CPP_LIST = $(UDB_CPP_UNDEF_LIST) -D_GERMAN_
- CppSourceFile(CDE-LOC-DE.tmp,CDE-LOC.src,$(DE_LOC_CPP_LIST),)
- CppSourceFile(CDE-HELP-LOC-DE.tmp,CDE-HELP-LOC.src,$(DE_LOC_CPP_LIST),)
- CppSourceFile(CDE-MSG-LOC-DE.tmp,CDE-MSG-LOC.src,$(DE_LOC_CPP_LIST),)
- CppSourceFile(CDE-INFOLIB-LOC-DE.tmp,CDE-INFOLIB-LOC.src,$(DE_LOC_CPP_LIST),)
- 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)
- /*
- * Spanish
- */
- ES_LOC_CPP_LIST = $(UDB_CPP_UNDEF_LIST) -D_SPANISH_
- CppSourceFile(CDE-LOC-ES.tmp,CDE-LOC.src,$(ES_LOC_CPP_LIST),)
- CppSourceFile(CDE-HELP-LOC-ES.tmp,CDE-HELP-LOC.src,$(ES_LOC_CPP_LIST),)
- CppSourceFile(CDE-MSG-LOC-ES.tmp,CDE-MSG-LOC.src,$(ES_LOC_CPP_LIST),)
- CppSourceFile(CDE-INFOLIB-LOC-ES.tmp,CDE-INFOLIB-LOC.src,$(ES_LOC_CPP_LIST),)
- 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)
- /*
- * French
- */
- FR_LOC_CPP_LIST = $(UDB_CPP_UNDEF_LIST) -D_FRENCH_
- CppSourceFile(CDE-LOC-FR.tmp,CDE-LOC.src,$(FR_LOC_CPP_LIST),)
- CppSourceFile(CDE-HELP-LOC-FR.tmp,CDE-HELP-LOC.src,$(FR_LOC_CPP_LIST),)
- CppSourceFile(CDE-MSG-LOC-FR.tmp,CDE-MSG-LOC.src,$(FR_LOC_CPP_LIST),)
- CppSourceFile(CDE-INFOLIB-LOC-FR.tmp,CDE-INFOLIB-LOC.src,$(FR_LOC_CPP_LIST),)
- 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)
- /*
- * Italian
- */
- IT_LOC_CPP_LIST = $(UDB_CPP_UNDEF_LIST) -D_ITALIAN_
- CppSourceFile(CDE-LOC-IT.tmp,CDE-LOC.src,$(IT_LOC_CPP_LIST),)
- CppSourceFile(CDE-HELP-LOC-IT.tmp,CDE-HELP-LOC.src,$(IT_LOC_CPP_LIST),)
- CppSourceFile(CDE-MSG-LOC-IT.tmp,CDE-MSG-LOC.src,$(IT_LOC_CPP_LIST),)
- CppSourceFile(CDE-INFOLIB-LOC-IT.tmp,CDE-INFOLIB-LOC.src,$(IT_LOC_CPP_LIST),)
- 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)
- /*
- * Japanese
- */
- JP_LOC_CPP_LIST = $(UDB_CPP_UNDEF_LIST) -D_JAPANESE_
- CppSourceFile(CDE-LOC-JP.tmp,CDE-LOC.src,$(JP_LOC_CPP_LIST),)
- CppSourceFile(CDE-HELP-LOC-JP.tmp,CDE-HELP-LOC.src,$(JP_LOC_CPP_LIST),)
- CppSourceFile(CDE-MSG-LOC-JP.tmp,CDE-MSG-LOC.src,$(JP_LOC_CPP_LIST),)
- CppSourceFile(CDE-INFOLIB-LOC-JP.tmp,CDE-INFOLIB-LOC.src,$(JP_LOC_CPP_LIST) $(MOTIF_DOC),)
- 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)
- $(DBS):: $(UDBS)
- includes:: $(DBS)
- all:: $(DBS)
|