1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27 28PRJ=.. 29PRJNAME=reportbuilder 30TARGET=rpt_templates 31 32# ??? 33no_common_build_zip=true 34 35EXTENSION_VERSION_BASE=1.0.0 36.IF "$(DBG_LEVEL)" == "0" 37 EXTENSION_VERSION=$(EXTENSION_VERSION_BASE) 38.ELSE 39 EXTENSION_VERSION=$(EXTENSION_VERSION_BASE).$(BUILD) 40.ENDIF 41 42# --- Settings ---------------------------------- 43.INCLUDE : settings.mk 44# ------------------------------------------------------------------ 45 46# create Extension ----------------------------- 47 48.IF "$(SOLAR_JAVA)"!="" 49 50ZIP1TARGET=sun-report-builder-templates 51ZIP1FLAGS=-r 52ZIP1DIR=$(MISC)$/templates 53ZIP1LIST=* 54ZIP1EXT=.oxt 55 56XMLFILES := $(ZIP1DIR)$/description.xml \ 57 $(ZIP1DIR)$/META-INF$/manifest.xml 58 59XCU_FILES := $(ZIP1DIR)$/registry$/data$/org$/openoffice$/Office$/Paths.xcu 60 61ODR_FILES := \ 62 $(ZIP1DIR)$/template$/wizard$/report$/finance.odr \ 63 $(ZIP1DIR)$/template$/wizard$/report$/finance_2.odr \ 64 $(ZIP1DIR)$/template$/wizard$/report$/yellow.odr 65 66HTMLFILES := $(ZIP1DIR)$/THIRDPARTYREADMELICENSE.html \ 67 $(ZIP1DIR)$/readme_en-US.html \ 68 $(ZIP1DIR)$/readme_en-US.txt 69 70.IF "$(GUI)"!="WNT" 71TXTFILES:=$(foreach,i,$(alllangiso) $(ZIP1DIR)$/registration$/LICENSE_$i) 72LICLINES:=$(foreach,i,$(TXTFILES) <license-text xlink:href="registration/$(i:f)" lang="$(subst,LICENSE_, $(i:f))" license-id="$(subst,LICENSE_, $(i:f))" />) 73.ELSE # "$(GUI)"!="WNT" 74TXTFILES:=$(foreach,i,$(alllangiso) $(ZIP1DIR)$/registration$/license_$i.txt) 75LICLINES:=$(foreach,i,$(TXTFILES) <license-text xlink:href="registration/$(i:f)" lang="$(subst,.txt, $(subst,license_, $(i:f)))" license-id="$(subst,.txt, $(subst,license_, $(i:f)))" />) 76.ENDIF # "$(GUI)"!="WNT" 77 78# --- Targets ---------------------------------- 79.INCLUDE : target.mk 80 81.IF "$(ZIP1TARGETN)"!="" 82$(ZIP1TARGETN) : $(TXTFILES) $(XMLFILES) $(HTMLFILES) $(ODR_FILES) 83.ENDIF # "$(ZIP1TARGETN)"!=" 84 85$(MISC)$/template_update_report.flag : $(XCU_FILES) 86 $(TOUCH) $@ 87 88$(ZIP1DIR)$/description.xml : pre.xml post.xml 89 @@-$(MKDIRHIER) $(@:d) 90 @@-$(RM) $(ZIP1DIR)$/description.xml 91 $(TYPE) pre.xml > $@ 92 $(TYPE) $(mktmp $(LICLINES)) >> $@ 93 $(TYPE) post.xml | $(SED) s/#VERSION#/$(EXTENSION_VERSION)/ >> $@ 94 95$(ZIP1DIR)$/registration$/license_%.txt : $(SOLARBINDIR)$/osl$/license_%.txt 96 @@-$(MKDIRHIER) $(@:d) 97 $(COPY) $< $@ 98 99$(ZIP1DIR)$/registration$/LICENSE_% : $(SOLARBINDIR)$/osl$/LICENSE_% 100 @@-$(MKDIRHIER) $(@:d) 101 $(COPY) $< $@ 102 103$(ZIP1DIR)$/registry$/data$/org$/openoffice$/Office$/%.xcu : $(MISC)$/template$/registry$/data$/org$/openoffice$/Office$/%.xcu 104 @@-$(MKDIRHIER) $(@:d) 105 $(COPY) $< $@ 106 107$(ZIP1DIR)$/META-INF$/manifest.xml : manifest.xml $(MISC)$/template_update_report.flag 108 @@-$(MKDIRHIER) $(@:d) 109 $(PERL) $(SOLARENV)$/bin$/makemani.pl $(PRJ)$/template$/manifest.xml $(ZIP1DIR) registry $(@:d:d) 110 111$(ZIP1DIR)$/readme_en-US.% : $(PRJ)$/license$/readme_en-US.% 112 @@-$(MKDIRHIER) $(@:d) 113 $(COPY) $< $@ 114 115$(ZIP1DIR)$/THIRDPARTYREADMELICENSE.html : $(PRJ)$/license$/THIRDPARTYREADMELICENSE.html 116 @@-$(MKDIRHIER) $(@:d) 117 $(COPY) $< $@ 118 119.ELSE # "$(SOLAR_JAVA)"!="" 120.INCLUDE : target.mk 121.ENDIF # "$(SOLAR_JAVA)"!="" 122# 123