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=swext 30TARGET=$(PRJNAME)_help 31 32.INCLUDE : settings.mk 33 34.IF "$(WITH_LANG)"!="" 35# workaround for the problem in help, the help uses en instead of en-US 36MEDIAWIKI_LANG=$(uniq en $(alllangiso)) 37aux_alllangiso:=$(MEDIAWIKI_LANG) 38.ELSE # "$(WITH_LANG)"!="" 39aux_alllangiso:=$(defaultlangiso) 40MEDIAWIKI_LANG=$(uniq en $(alllangiso)) 41.ENDIF # "$(WITH_LANG)"!="" 42 43.IF "$(ENABLE_MEDIAWIKI)" != "YES" 44all: 45 @echo Building mediawiki disabled... 46.ELSE # "$(ENABLE_MEDIAWIKI)" != "YES" 47 48PACKAGE=com.sun.wiki-publisher 49 50OUT_MEDIAWIKI:=$(MISC)$/mediawiki 51 52LINKNAME:=help 53XHPLINKSRC:=$(OUT_MEDIAWIKI)/help 54 55XHPDEST=$(OUT_MEDIAWIKI)_merge/help 56 57XHPFILES= \ 58 wiki.xhp\ 59 wikiaccount.xhp\ 60 wikiformats.xhp\ 61 wikisend.xhp\ 62 wikisettings.xhp 63 64LINKLINKFILES= \ 65 $(PACKAGE)/{$(XHPFILES)} 66 67# define with own language set 68HLANGXHPFILES=$(foreach,i,$(XHPFILES) $(foreach,j,$(MEDIAWIKI_LANG) $(XHPDEST)$/$j$/$(PACKAGE)$/$(i:f))) 69 70.INCLUDE : target.mk 71.INCLUDE : tg_help.mk 72.INCLUDE : extension_helplink.mk 73 74ALLTAR : $(OUT_MEDIAWIKI)/help/component.txt 75 76$(OUT_MEDIAWIKI)/help/component.txt : component.txt 77 @-$(MKDIRHIER) $(@:d) 78 $(COMMAND_ECHO)$(COPY) component.txt $@ 79 80$(OUT_MEDIAWIKI)/help/%.xhp : $(OUT_MEDIAWIKI)_merge/help/%.xhp 81 @-$(MKDIRHIER) $(@:d) 82 $(COMMAND_ECHO)cat $< | sed -e 's/@WIKIEXTENSIONPRODUCTNAME@/Wiki Publisher/g' | \ 83 sed 's/@WIKIEXTENSIONID@/com.sun.wiki-publisher/g' | \ 84 sed 's/@WIKIEXTENSIONFILENAME@/wiki-publisher/g' > $@ 85 86.ENDIF # "$(ENABLE_MEDIAWIKI)" != "YES" 87 88