X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=mk%2Fjam%2Finstall.jam;h=ad85e41c29935d88de334337af45432a9d6c9974;hb=6c3a5307b87bc3fff19e819281cf2b87a2b5010b;hp=9d3553ff51c352038a5dddc3fc3ca52f834de342;hpb=a3d3da8a3af3bf7f77a8c50d447c3ef8a3baec49;p=supertux.git diff --git a/mk/jam/install.jam b/mk/jam/install.jam index 9d3553ff5..ad85e41c2 100644 --- a/mk/jam/install.jam +++ b/mk/jam/install.jam @@ -85,7 +85,7 @@ rule InstallMan } } -## DoInstall sourcename : directories [ : installapp ] +## DoInstall sourcename : directories [ : installapp ] [ : options ] ## Creates a new installtarget for the given sources. The target(s) are ## returned as function result. rule DoInstall @@ -96,7 +96,7 @@ rule DoInstall gdir = $(dir:G=dir) ; MkDir $(gdir) ; - for i in $(1) { + for i in $(<) { target = $(i:BSR=$(dir):G=install) ; targets += $(target) ; Depends $(target) : $(gdir) $(i) ; @@ -109,6 +109,11 @@ rule DoInstall } } + # We want to package all files we install + if ! [ IsElem nopackage : $(4) ] { + Package $(<) ; + } + Always $(targets) ; return $(targets) ; }