summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/GeneratePackageMake2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/GeneratePackageMake b/scripts/GeneratePackageMake
index d5ccee5..099d3e8 100755
--- a/scripts/GeneratePackageMake
+++ b/scripts/GeneratePackageMake
@@ -93,97 +93,97 @@ endef
# Will contain a list of all non-mt control files
ALLCONTROLFILES=
#
# Will contain a list of all packaging targets
ALLPACKAGES=
# s contains now single space
s=\$(x) \$(x)
#
# for convenience : generate AllTh
ATP=\$(OPIEDIR)/AllThreadedPackages
MAKEFILEHEADER
while read k
do
CDIR="${k#* }"
read k
BNAME="${k#* }"
read k
case $k in
*"ackage:"*)
Pkg="${k#* }"
Pkg="${Pkg// }"
;;
*"iles:"*)
Files="${k/Files:/}"
;;
esac
read k
case $k in
*"ackage:"*)
Pkg="${k#* }"
Pkg="${Pkg// }"
;;
*"iles:"*)
Files="${k/Files:/}"
;;
esac
cat << HERE
#
# package $Pkg in ${BNAME}
#
package-${Pkg} : \$(OPIEDIR)/Packages/$Pkg
-package-${Pkg}-mt : \$(OPIEDIR)/Packages/$Pkg-mt
+package-${Pkg}-mt : \$(ATP) \$(OPIEDIR)/Packages/$Pkg-mt
# collect control files and package targets
ALLCONTROLFILES += ${CDIR}/${BNAME}.control
ALLPACKAGES += $Pkg
# to generate -mt control file
\$(OPIEDIR)/${CDIR}/${BNAME}-mt.control : \$(OPIEDIR)/${CDIR}/${BNAME}.control
\$(GenerateMTControl)
HERE
if [ ! -z "${Files}" ]
then
cat << HERE
# optimize speed
.phony : \$(wildcard \$(addprefix \$(OPIEDIR)/,${Files}))
# capture missing files (because not built)
\$(OPIEDIR)/Packages/$Pkg \$(OPIEDIR)/Packages/$Pkg-mt \$(SUBSTFILES): \$(wildcard \$(addprefix \$(OPIEDIR)/,${Files}))
HERE
# echo "\$(wildcard \$(addprefix \$(OPIEDIR)/,${Files})) : "
fi
cat << HERE
\$(OPIEDIR)/Packages/$Pkg : \$(OPIEDIR)/${CDIR}/${BNAME}.control
@\$(call DoPackage,${CDIR},${BNAME},${BNAME},${Pkg})
\$(OPIEDIR)/Packages/$Pkg-mt : \$(OPIEDIR)/${CDIR}/${BNAME}-mt.control
@\$(call DoPackage,${CDIR},${BNAME},${BNAME}-mt,${Pkg}-mt)
HERE
done < /tmp/ALL
cat << HERE
#
# regenerate package file if control files are modified
#
Package.make : \$(addprefix \$(OPIEDIR)/,\$(ALLCONTROLFILES))
#
# make targets to build packages
# needs quicklauncher link in location (because dangling
# links are not considered as true files by the wildcard command)