diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-12-07 14:48:48 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-12-07 15:00:20 +0100 |
commit | ca23cdbf90b97f141fdcf4fbc237e8f945cdd1e6 (patch) | |
tree | 442cb06a0ece98836b5d51c35930ef46f7e097dd | |
parent | 1924f9d049564400ea7411a5ed33e6633e05fa1a (diff) |
reuse Zip Target for PyUno
-rw-r--r-- | solenv/gbuild/Pyuno.mk | 26 | ||||
-rw-r--r-- | solenv/gbuild/TargetLocations.mk | 5 |
2 files changed, 9 insertions, 22 deletions
diff --git a/solenv/gbuild/Pyuno.mk b/solenv/gbuild/Pyuno.mk index 37512fbeb6d1..9ad8b3622afd 100644 --- a/solenv/gbuild/Pyuno.mk +++ b/solenv/gbuild/Pyuno.mk @@ -25,40 +25,26 @@ # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable # instead of those above. -gb_Pyuno_ZIPCOMMAND := zip $(if $(findstring s,$(MAKEFLAGS)),-q) -gb_Pyuno__get_outdir_path = $(patsubst $(OUTDIR)/%,%,$(gb_Helper_OUTDIRLIBDIR))/pyuno/$(1) - $(call gb_Pyuno_get_target,%) : $(call gb_Output_announce,$*,$(true),PYU,3) mkdir -p $(dir $@) && touch $@ -$(call gb_Pyuno_get_target_zip,%) : $(call gb_Package_get_target,%_pyuno) - $(call gb_Output_announce,$*,$(true),PZP,3) - cd $(gb_Helper_OUTDIRLIBDIR)/pyuno && \ - $(gb_Pyuno_ZIPCOMMAND) -rX --filesync \ - $(call gb_Pyuno_get_target_zip,$*) \ - $(PYZFILES) - .PHONY : $(call gb_Pyuno_get_clean_target,%) $(call gb_Pyuno_get_clean_target,%) : $(call gb_Output_announce,$*,$(false),PYU,3) - rm -f $@ $(gb_Pyuno_get_target_zip,$*) + rm -f $(call gb_Pyuno_get_target,$*) $(call gb_Pyuno_get_outdir_target,$*) define gb_Pyuno_Pyuno -$(call gb_Pyuno_get_target_zip,$(1)) : PYZFILES := -$(call gb_Package_Package,$(1)_pyuno,$(2)) +$(call gb_Zip_Zip,Pyuno/$(1),$(2)) $$(eval $$(call gb_Module_register_target,$(call gb_Pyuno_get_target,$(1)),$(call gb_Pyuno_get_clean_target,$(1)))) -$(call gb_Pyuno_get_target,$(1)) : \ - $(call gb_Package_get_target,$(1)_pyuno) \ - $(call gb_Pyuno_get_target_zip,$(1)) -$(call gb_Pyuno_get_clean_target,$(1)) : \ - $(call gb_Package_get_clean_target,$(1)_pyuno) +$(call gb_Pyuno_get_target,$(1)) : $(call gb_Pyuno_get_outdir_target,$(1)) +$(call gb_Pyuno_get_outdir_target,$(1)) : $(call gb_Zip_get_target,Pyuno/$(1)) +$(call gb_Pyuno_get_clean_target,$(1)) : $(call gb_Zip_get_clean_target,Pyuno/$(1)) endef define gb_Pyuno_add_file -$(call gb_Pyuno_get_target_zip,$(1)) : PYZFILES += $(2) -$(call gb_Package_add_file,$(1)_pyuno,$(call gb_Pyuno__get_outdir_path,$(2)),$(2)) +$(call gb_Zip_add_file,Pyuno/$(1),$(2)) endef diff --git a/solenv/gbuild/TargetLocations.mk b/solenv/gbuild/TargetLocations.mk index d51b8eda539f..b7a4fde912b5 100644 --- a/solenv/gbuild/TargetLocations.mk +++ b/solenv/gbuild/TargetLocations.mk @@ -103,8 +103,9 @@ gb_ObjCxxObject_get_target = $(WORKDIR)/ObjCxxObject/$(1).o gb_ObjCObject_get_target = $(WORKDIR)/ObjCObject/$(1).o gb_Package_get_preparation_target = $(WORKDIR)/Package/prepared/$(1) gb_Package_get_target = $(WORKDIR)/Package/$(1) -gb_Pyuno_get_target = $(WORKDIR)/Pyuno/$(1) -gb_Pyuno_get_target_zip = $(OUTDIR)/bin/$(1).zip +gb_Pyuno_get_target = $(WORKDIR)/Pyuno/$(1).zip +gb_Pyuno_get_outdir_target = $(OUTDIR)/bin/$(1).zip +gb_PyunoFile_get_target = $(WORKDIR)/Pyuno/$(1)/contents/$(2) gb_RdbTarget_get_target = $(WORKDIR)/RdbTarget/$(1).rdb gb_ResTarget_get_imagelist_target = $(WORKDIR)/ResTarget/$(1).ilst gb_ResTarget_get_target = $(WORKDIR)/ResTarget/$(1).res |