diff --git a/mk/filetypeTargetMap.inc b/mk/filetypeTargetMap.inc index a1d1c5c..b2f66ed 100644 --- a/mk/filetypeTargetMap.inc +++ b/mk/filetypeTargetMap.inc @@ -1,6 +1,9 @@ #! /QOpenSys/pkgs/bin/bash declare -A FILETARGETMAPPING; +FILETARGETMAPPING[PGM.RPGLE]=PGM +FILETARGETMAPPING[PGM.CLLE]=PGM +FILETARGETMAPPING[PGM.C]=PGM FILETARGETMAPPING[CMDSRC]=CMD FILETARGETMAPPING[DSPF]=FILE FILETARGETMAPPING[LF]=FILE @@ -13,8 +16,6 @@ FILETARGETMAPPING[CLLE]=MODULE FILETARGETMAPPING[SQLC]=MODULE FILETARGETMAPPING[SQLRPGLE]=MODULE FILETARGETMAPPING[MODULE]=PGM -FILETARGETMAPPING[PGM.RPGLE]=PGM -FILETARGETMAPPING[PGM.C]=PGM FILETARGETMAPPING[CBL]=PGM FILETARGETMAPPING[RPG]=PGM FILETARGETMAPPING[ILEPGM]=PGM @@ -43,6 +44,7 @@ get_target_from_srcfile() { targetName="${filename%.${i}}"; targetName=$(echo $targetName | awk -F- '{ print $1 }') echo "${targetName}.${FILETARGETMAPPING[$i]}" + break fi done }