# +----------------------------------------------------------------------+ # | Aubit 4gl Language Compiler Version $.0 | # +----------------------------------------------------------------------+ # | Copyright (c) 2000-1 Aubit Development Team (See Credits file) | # +----------------------------------------------------------------------+ # | This program is free software; you can redistribute it and/or modify | # | it under the terms of one of the following licenses: | # | | # | A) the GNU General Public License as published by the Free Software | # | Foundation; either version 2 of the License, or (at your option) | # | any later version. | # | | # | B) the Aubit License as published by the Aubit Development Team and | # | included in the distribution in the file: LICENSE | # | | # | This program is distributed in the hope that it will be useful, | # | but WITHOUT ANY WARRANTY; without even the implied warranty of | # | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # | GNU General Public License for more details. | # | | # | You should have received a copy of both licenses referred to here. | # | If you did not, or have any questions about Aubit licensing, please | # | contact afalout@ihug.co.nz | # +----------------------------------------------------------------------+ # # $Id: Makefile.in,v 1.6 2010/01/14 09:17:23 mikeaubury Exp $ # #Internationalization / language translation example ## ================================================================== ## Options ## ================================================================== ROOT=../../.. #All stuff common to more then one Aubit compiler make file is there: include ${ROOT}/incl/Makefile-common #rules for making Aubit targets: include ${ROOT}/incl/a4gl.mk MSGFILES =english.msg french.msg german.msg italian.msg spanish.msg portuguese.msg HLPFILES =${MSGFILES:.msg=.hlp} 4GLFILES =lang.4gl ## ================================================================== ## Targets ## ================================================================== ALL: lang lang: ${HLPFILES} ${4GLFILES} (export TRANSLATEFILE=source.lang; ${FGLPCEXEC} ${4GLFILES} -o $@) %.hlp: %.msg ${MKMESS} $*.msg $*.hlp source.lang: (export DUMPSTRINGS=ident; xxxx what?) # ... then copying the resulting string.lang to source.lang (so it isn't # overwritten every time you recompile) ${CP} string.lang $@ ## ================================================================== ## Targets ## ================================================================== clean: ${RM} *.glb *.bak *.hlp lang *.exe *.h *.c ${FILES.4gl:.4gl=.h} # ================================ EOF ==============================