solenv/gbuild/Pyuno.mk | 26 ++++++-------------------- solenv/gbuild/TargetLocations.mk | 5 +++-- 2 files changed, 9 insertions(+), 22 deletions(-)
New commits: commit 15c60429f8055747665b527b1a704c9297ace79d Author: Bjoern Michaelsen <bjoern.michael...@canonical.com> Date: Wed Dec 7 14:48:48 2011 +0100 reuse Zip Target for PyUno diff --git a/solenv/gbuild/Pyuno.mk b/solenv/gbuild/Pyuno.mk index a18ef65..34b6caa 100644 --- a/solenv/gbuild/Pyuno.mk +++ b/solenv/gbuild/Pyuno.mk @@ -23,40 +23,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 d51b8ed..b7a4fde 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 _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits