diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-05-09 23:15:42 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-05-10 10:47:44 +0200 |
commit | a9550f63cd7a7e064901b2c997375ed384781eea (patch) | |
tree | b35a7bf6077c5b40390cbde11dffe30ef90d57c9 /officecfg | |
parent | error handling in SortTree custom action (diff) | |
download | core-a9550f63cd7a7e064901b2c997375ed384781eea.tar.gz core-a9550f63cd7a7e064901b2c997375ed384781eea.zip |
normalize variable names in gbuild user makefiles
Variables should have module name as prefix to prevent collisions.
Diffstat (limited to 'officecfg')
-rw-r--r-- | officecfg/CustomTarget_registry.mk | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/officecfg/CustomTarget_registry.mk b/officecfg/CustomTarget_registry.mk index 5f13b6bbd801..0f63c711a2aa 100644 --- a/officecfg/CustomTarget_registry.mk +++ b/officecfg/CustomTarget_registry.mk @@ -26,37 +26,34 @@ ## instead of those above. ## -OCDIR := $(SRCDIR)/officecfg/registry -include $(OCDIR)/files.mk +include $(SRCDIR)/officecfg/registry/files.mk $(eval $(call gb_CustomTarget_CustomTarget,officecfg/registry)) -OCRG := $(call gb_CustomTarget_get_workdir,officecfg/registry) - $(call gb_CustomTarget_get_target,officecfg/registry) : \ - $(foreach i,$(officecfg_FILES),$(OCRG)/$(i).hxx) + $(foreach i,$(officecfg_FILES),$(call gb_CustomTarget_get_workdir,officecfg/registry)/$(i).hxx) -define oc_target -$(OCRG)/$(if $(1),$(1)/$(if $(2),$(2)/))%.hxx: \ - $(OCDIR)/schema/org/openoffice/$(if $(1),$(1)/$(if $(2),$(2)/))%.xcs \ - $(OCDIR)/cppheader.xsl | $(gb_XSLTPROCTARGET) +define officecfg_TARGET +$(call gb_CustomTarget_get_workdir,officecfg/registry)/$(if $(1),$(1)/$(if $(2),$(2)/))%.hxx: \ + $(SRCDIR)/officecfg/registry/schema/org/openoffice/$(if $(1),$(1)/$(if $(2),$(2)/))%.xcs \ + $(SRCDIR)/officecfg/registry/cppheader.xsl | $(gb_XSLTPROCTARGET) $$(call gb_Output_announce,$$(subst $(WORKDIR)/,,$$@),$(true),XSL,1) $$(call gb_Helper_abbreviate_dirs, \ mkdir -p $$(dir $$@) && \ $$(gb_XSLTPROC) --nonet --stringparam ns1 \ $(if $(1), \ $(1) --stringparam ns2 $(if $(2),$(2) --stringparam ns3)) $$* \ - -o $$@ $(OCDIR)/cppheader.xsl $$<) + -o $$@ $(SRCDIR)/officecfg/registry/cppheader.xsl $$<) endef # Sort longer paths before their prefixes, as at least GNU Make 3.81 on Mac OS X # appears to let % span sub-directories, so that the above rule would produce # unexpected results; sorting this way seems to avoid the problem: -$(eval $(call oc_target,Office,DataAccess)) -$(eval $(call oc_target,Office,OOoImprovement)) -$(eval $(call oc_target,Office,UI)) -$(eval $(call oc_target,Office)) -$(eval $(call oc_target,TypeDetection)) -$(eval $(call oc_target,ucb)) -$(eval $(call oc_target)) +$(eval $(call officecfg_TARGET,Office,DataAccess)) +$(eval $(call officecfg_TARGET,Office,OOoImprovement)) +$(eval $(call officecfg_TARGET,Office,UI)) +$(eval $(call officecfg_TARGET,Office)) +$(eval $(call officecfg_TARGET,TypeDetection)) +$(eval $(call officecfg_TARGET,ucb)) +$(eval $(call officecfg_TARGET)) |