writerfilter: add some bling to customtarget
This commit is contained in:
parent
2c2cffff06
commit
521001049d
1 changed files with 26 additions and 0 deletions
|
@ -48,15 +48,19 @@ wf_GEN_doctok_Resources_hxx=doctok/resources.hxx
|
|||
wf_GEN_doctok_Resources_cxx=resources.cxx
|
||||
|
||||
$(wf_GEN_doctok_SprmIds_hxx) : doctok $(wf_SRC_doctok_SprmIds_xsl) $(wf_SRC_doctok_Model)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_SRC_doctok_SprmIds_xsl) $(wf_SRC_doctok_Model)) > $@
|
||||
|
||||
$(wf_GEN_doctok_ResourceIds_hxx) : doctok $(wf_SRC_doctok_ResourceIds_xsl) $(wf_SRC_doctok_Model)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_SRC_doctok_ResourceIds_xsl) $(wf_SRC_doctok_Model)) > $@
|
||||
|
||||
$(wf_GEN_doctok_Resources_hxx) : doctok $(wf_SRC_doctok_Resources_xsl) $(wf_SRC_doctok_Model)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_SRC_doctok_Resources_xsl) $(wf_SRC_doctok_Model)) > $@
|
||||
|
||||
$(wf_GEN_doctok_Resources_cxx) : doctok $(wf_SRC_doctok_ResourcesImpl_xsl) $(wf_SRC_doctok_Model) $(wf_SRC_doctok_ResourceTools_xsl)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_SRC_doctok_ResourcesImpl_xsl) $(wf_SRC_doctok_Model)) > $@
|
||||
|
||||
# ooxml
|
||||
|
@ -90,44 +94,57 @@ wf_GEN_ooxml_Model_processed=model_preprocessed.xml
|
|||
wf_GEN_ooxml_Model_analyzed=ooxml/model_analyzed.xml
|
||||
|
||||
$(wf_GEN_ooxml_token_tmp) : $(OUTDIR)/inc/oox/tokens.txt
|
||||
$(call gb_Output_announce,$@,build,CAT,1)
|
||||
cat $(OUTDIR)/inc/oox/tokens.txt \
|
||||
| sed "s#\(.*\)#<fasttoken>\1</fasttoken>#" > $@
|
||||
|
||||
$(wf_GEN_ooxml_token_xml) : $(WFDIR)ooxml/tokenxmlheader $(wf_GEN_ooxml_token_tmp) $(WFDIR)ooxml/tokenxmlfooter
|
||||
$(call gb_Output_announce,$@,build,CAT,1)
|
||||
cat $(WFDIR)ooxml/tokenxmlheader $(wf_GEN_ooxml_token_tmp) $(WFDIR)ooxml/tokenxmlfooter > $@
|
||||
|
||||
$(wf_GEN_ooxml_FastTokens_hxx) : $(wf_SRC_ooxml_FastTokens_xsl) $(wf_GEN_ooxml_token_xml)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_SRC_ooxml_FastTokens_xsl) $(wf_GEN_ooxml_token_xml)) > $@
|
||||
|
||||
$(wf_GEN_ooxml_Factory_hxx) : $(WFDIR)ooxml/factoryinc.xsl $(wf_GEN_ooxml_Model_processed)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $< $(wf_GEN_ooxml_Model_processed)) > $@
|
||||
|
||||
$(wf_GEN_ooxml_Factory_cxx) : $(WFDIR)ooxml/factoryimpl.xsl $(wf_GEN_ooxml_Model_processed)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $< $(wf_GEN_ooxml_Model_processed)) > $@
|
||||
|
||||
OOXMLFactory%.cxx : $(WFDIR)ooxml/factoryimpl_ns.xsl $(wf_GEN_ooxml_Model_processed)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) --stringparam file $@ $< $(wf_GEN_ooxml_Model_processed)) > $@
|
||||
|
||||
OOXMLFactory%.hxx : $(WFDIR)ooxml/factory_ns.xsl $(wf_GEN_ooxml_Model_processed)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) --stringparam file $@ $< $(wf_GEN_ooxml_Model_processed)) > $@
|
||||
|
||||
$(wf_GEN_ooxml_FactoryValues_hxx) : $(wf_SRC_ooxml_FactoryValues_xsl) $(wf_GEN_ooxml_Model_processed)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_SRC_ooxml_FactoryValues_xsl) $(wf_GEN_ooxml_Model_processed)) > $@
|
||||
|
||||
$(wf_GEN_ooxml_FactoryValues_cxx) : $(wf_SRC_ooxml_FactoryValuesImpl_xsl) $(wf_GEN_ooxml_Model_processed)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_SRC_ooxml_FactoryValuesImpl_xsl) $(wf_GEN_ooxml_Model_processed)) > $@
|
||||
|
||||
$(wf_GEN_ooxml_ResourceIds_hxx) : ooxml $(wf_SRC_ooxml_ResourceIds_xsl) $(wf_GEN_ooxml_Model_processed)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_SRC_ooxml_ResourceIds_xsl) $(wf_GEN_ooxml_Model_processed)) > $@
|
||||
|
||||
$(wf_GEN_ooxml_NamespaceIds_hxx) : $(wf_SRC_ooxml_NamespaceIds_xsl) $(wf_GEN_ooxml_Model_processed)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_SRC_ooxml_NamespaceIds_xsl) $(wf_GEN_ooxml_Model_processed)) > $@
|
||||
|
||||
$(wf_GEN_ooxml_GperfFastToken_hxx) : $(wf_SRC_ooxml_GperfFastTokenHandler_xsl) $(wf_GEN_ooxml_Model_processed)
|
||||
$(call gb_Output_announce,$@,build,GPF,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_SRC_ooxml_GperfFastTokenHandler_xsl) $(wf_GEN_ooxml_Model_processed)) \
|
||||
| tr -d '\r' | gperf -I -t -E -S1 -c -G -LC++ > $@
|
||||
|
||||
$(wf_GEN_ooxml_Model_analyzed): $(wf_SRC_ooxml_Analyze_model_xsl) $(wf_SRC_ooxml_Model)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $^) > $@
|
||||
|
||||
# rtftok
|
||||
|
@ -157,27 +174,35 @@ wf_DEP_ooxml_namespaces_txt=$(OUTDIR)/inc$(UPDMINOREXT)/oox/namespaces.txt
|
|||
wf_GEN_ooxml_preprocess_xsl=modelpreprocess.xsl
|
||||
|
||||
$(wf_GEN_ooxml_QNameToStr_tmp): $(wf_SRC_ooxml_QNameToStr_xsl) $(wf_GEN_ooxml_Model_processed)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_SRC_ooxml_QNameToStr_xsl) $(wf_GEN_ooxml_Model_processed)) > $@
|
||||
|
||||
$(wf_GEN_doctok_QnameToStr_tmp): $(wf_SRC_doctok_QNameToStr_xsl) $(wf_SRC_doctok_Model)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_SRC_doctok_QNameToStr_xsl) $(wf_SRC_doctok_Model)) > $@
|
||||
|
||||
$(wf_GEN_model_QNameToStr_cxx): $(wf_GEN_ooxml_QNameToStr_tmp) $(wf_GEN_doctok_QnameToStr_tmp) $(WFDIR)resourcemodel/qnametostrheader $(WFDIR)resourcemodel/qnametostrfooter $(wf_SRC_ooxml_FactoryTools_xsl) $(wf_SRC_doctok_ResourceTools_xsl)
|
||||
$(call gb_Output_announce,$@,build,CAT,1)
|
||||
cat $(WFDIR)resourcemodel/qnametostrheader $(wf_GEN_ooxml_QNameToStr_tmp) $(wf_GEN_doctok_QnameToStr_tmp) $(WFDIR)resourcemodel/qnametostrfooter > $@
|
||||
|
||||
$(wf_GEN_model_SprmCodeToStr_tmp) : $(wf_SRC_doctok_SprmCodeToStr_xsl) $(wf_SRC_doctok_Model)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_SRC_doctok_SprmCodeToStr_xsl) $(wf_SRC_doctok_Model)) > $@
|
||||
|
||||
$(wf_GEN_model_SprmCodeToStr_cxx): $(WFDIR)resourcemodel/sprmcodetostrheader $(wf_GEN_model_SprmCodeToStr_tmp) $(WFDIR)resourcemodel/sprmcodetostrfooter
|
||||
$(call gb_Output_announce,$@,build,CAT,1)
|
||||
cat $^ > $@
|
||||
|
||||
$(wf_GEN_ooxml_Namespacesmap_xsl) : $(wf_SRC_ooxml_Model) $(wf_DEP_ooxml_namespaces_txt) $(wf_SRC_model_NamespacePreprocess)
|
||||
$(call gb_Output_announce,$@,build,PRL,1)
|
||||
$(PERL) $(wf_SRC_model_NamespacePreprocess) $(wf_DEP_ooxml_namespaces_txt) > $@
|
||||
|
||||
$(wf_GEN_ooxml_preprocess_xsl) : $(wf_SRC_ooxml_Preprocess_xsl)
|
||||
$(call gb_Output_announce,$@,build,CPY,1)
|
||||
cp -f $(wf_SRC_ooxml_Preprocess_xsl) $@
|
||||
|
||||
$(wf_GEN_ooxml_Model_processed) : $(wf_GEN_ooxml_Namespacesmap_xsl) $(wf_GEN_ooxml_preprocess_xsl) $(wf_SRC_ooxml_Model)
|
||||
$(call gb_Output_announce,$@,build,XSL,1)
|
||||
$(call gb_Helper_abbreviate_dirs_native, $(gb_XSLTPROC) $(wf_GEN_ooxml_Namespacesmap_xsl) $(wf_SRC_ooxml_Model)) > $@
|
||||
|
||||
# all
|
||||
|
@ -201,3 +226,4 @@ all : \
|
|||
$(wf_GEN_model_SprmCodeToStr_cxx) \
|
||||
$(patsubst %,OOXMLFactory_%.hxx,$(WRITERFILTER_OOXMLNAMESPACES)) \
|
||||
$(patsubst %,OOXMLFactory_%.cxx,$(WRITERFILTER_OOXMLNAMESPACES)) \
|
||||
|
||||
|
|
Loading…
Reference in a new issue