diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2013-12-08 03:39:37 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2013-12-08 03:56:41 +0100 |
commit | c6fe5c6f371328cb6cf61d68f016a04f8b635a48 (patch) | |
tree | dcf5221a4d7d65763fc9bbc2c33bc3d73e97fbbc /solenv/gbuild | |
parent | 8248a32f499f4c4eaf6b7dbd7acead3370fdde54 (diff) |
initial install-package-foo target for partial installs
Change-Id: I4ee41fdb600cb3a89da387dffe64e6a30192761c
Diffstat (limited to 'solenv/gbuild')
-rw-r--r-- | solenv/gbuild/extensions/post_PackageInfo.mk | 17 | ||||
-rw-r--r-- | solenv/gbuild/extensions/post_SpeedUpTargets.mk | 2 |
2 files changed, 17 insertions, 2 deletions
diff --git a/solenv/gbuild/extensions/post_PackageInfo.mk b/solenv/gbuild/extensions/post_PackageInfo.mk index 22c6c459a273..54d6c5f99380 100644 --- a/solenv/gbuild/extensions/post_PackageInfo.mk +++ b/solenv/gbuild/extensions/post_PackageInfo.mk @@ -74,11 +74,26 @@ $(if $(filter $(gb_Configuration_LANGS),$(1)),$(foreach configfile,Langpack- res endef .PHONY: packageinfo -packageinfo: +$(foreach filelist,files executables libraries,$(gb_PackageInfo_get_target)/%.$(filelist)): @rm -rf $(gb_PackageInfo_get_target) && mkdir $(gb_PackageInfo_get_target) $(foreach installmodule,$(gb_PackageInfo_InstallModules),$(call gb_PackageInfo_emit_binaries_command,$(installmodule))) $(foreach helplang,$(gb_HELP_LANGS),$(call gb_PackageInfo_emit_help_for_one_lang,$(helplang))) $(foreach l10nlang,$(if $(strip $(gb_WITH_LANG)),$(gb_WITH_LANG),en-US),$(call gb_PackageInfo_emit_l10n_for_one_lang,$(l10nlang))) +packageinfo: $(gb_PackageInfo_get_target)/ure.files + +install-package-%: $(foreach filelist,files executables libraries,$(gb_PackageInfo_get_target)/%.$(filelist)) + for executable in `cat $(gb_PackageInfo_get_target)/$*.executables`; \ + do \ + install -D $(INSTDIR)/$${executable} $(INSTALLDIR)/$${executable} ;\ + done + for library in `cat $(gb_PackageInfo_get_target)/$*.libraries`; \ + do \ + install -D -m644 $(INSTDIR)/$${library} $(INSTALLDIR)/$${library}; \ + done + for file in `cat $(gb_PackageInfo_get_target)/$*.files`; \ + do \ + install -D -m644 $(INSTDIR)/$${file} $(INSTALLDIR)/$${file}; \ + done # vim: set noet sw=4 ts=4: diff --git a/solenv/gbuild/extensions/post_SpeedUpTargets.mk b/solenv/gbuild/extensions/post_SpeedUpTargets.mk index 3f3e562f80ba..4b97d46a5428 100644 --- a/solenv/gbuild/extensions/post_SpeedUpTargets.mk +++ b/solenv/gbuild/extensions/post_SpeedUpTargets.mk @@ -24,7 +24,7 @@ ifneq ($(strip $(MAKECMDGOALS)),) # speed up depending on the target gb_SpeedUpTargets_LEVEL_4 := debugrun help translations gb_SpeedUpTargets_LEVEL_3 := showmodules $(gb_SpeedUpTargets_LEVEL_4) -gb_SpeedUpTargets_LEVEL_2 := $(gb_SpeedUpTargets_LEVEL_3) +gb_SpeedUpTargets_LEVEL_2 := $(gb_SpeedUpTargets_LEVEL_3) install-package-% gb_SpeedUpTargets_LEVEL_1 := clean showdeliverables $(gb_SpeedUpTargets_LEVEL_2) ifeq (T,$(if $(filter-out $(gb_SpeedUpTargets_LEVEL_1),$(MAKECMDGOALS)),,T)) |