office-gobmx/odk/examples/DevelopersGuide/OfficeDev/makefile.mk

220 lines
8.2 KiB
Makefile
Raw Normal View History

#*************************************************************************
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.2 $
#
# last change: $Author: vg $ $Date: 2003-06-10 10:28:51 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
#
# - GNU Lesser General Public License Version 2.1
# - Sun Industry Standards Source License Version 1.1
#
# Sun Microsystems Inc., October, 2000
#
# GNU Lesser General Public License Version 2.1
# =============================================
# Copyright 2000 by Sun Microsystems, Inc.
# 901 San Antonio Road, Palo Alto, CA 94303, USA
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1, as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
#
# Sun Industry Standards Source License Version 1.1
# =================================================
# The contents of this file are subject to the Sun Industry Standards
# Source License Version 1.1 (the "License"); You may not use this file
# except in compliance with the License. You may obtain a copy of the
# License at http://www.openoffice.org/license.html.
#
# Software provided under this License is provided on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
# See the License for the specific provisions governing your rights and
# obligations concerning the Software.
#
# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
#
# Copyright: 2000 by Sun Microsystems, Inc.
#
# All Rights Reserved.
#
# Contributor(s): _______________________________________
#
#
#
#*************************************************************************
PRJ=..$/..$/..
PRJNAME=odk
TARGET=copying
#----------------------------------------------------------------
.INCLUDE: settings.mk
.INCLUDE: $(PRJ)$/util$/makefile.pmk
#----------------------------------------------------------------
#----------------------------------------------------
# this makefile is only used for copying the example
# files into the SDK
#----------------------------------------------------
OFFICEDEV_FILES=\
$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/ContextMenuInterceptor.java \
$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/Makefile \
$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/MenuElement.java \
$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/Number_Formats.java \
$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/OfficeConnect.java
DESTCLIPBOARD=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/Clipboard
CLIPBOARD_FILES=\
$(DESTCLIPBOARD)$/Clipboard.java \
$(DESTCLIPBOARD)$/ClipboardListener.java \
$(DESTCLIPBOARD)$/ClipboardOwner.java \
$(DESTCLIPBOARD)$/Makefile \
$(DESTCLIPBOARD)$/TextTransferable.java
DESTDESKTOPENV=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/DesktopEnvironment
DESKTOPENV_FILES=\
$(DESTDESKTOPENV)$/nativelib$/unix$/exports.dxp \
$(DESTDESKTOPENV)$/nativelib$/unix$/Makefile \
$(DESTDESKTOPENV)$/nativelib$/unix$/nativeview.c \
$(DESTDESKTOPENV)$/nativelib$/unix$/nativeview.h \
$(DESTDESKTOPENV)$/nativelib$/windows$/exports.dxp \
$(DESTDESKTOPENV)$/nativelib$/windows$/Makefile \
$(DESTDESKTOPENV)$/nativelib$/windows$/nativeview.c \
$(DESTDESKTOPENV)$/nativelib$/windows$/nativeview.h \
$(DESTDESKTOPENV)$/CustomizeView.java \
$(DESTDESKTOPENV)$/Desk.java \
$(DESTDESKTOPENV)$/DocumentView.java \
$(DESTDESKTOPENV)$/FunctionHelper.java \
$(DESTDESKTOPENV)$/Install.txt \
$(DESTDESKTOPENV)$/Interceptor.java \
$(DESTDESKTOPENV)$/IOnewayLink.java \
$(DESTDESKTOPENV)$/IShutdownListener.java \
$(DESTDESKTOPENV)$/JavaWindowPeerFake.java \
$(DESTDESKTOPENV)$/Makefile \
$(DESTDESKTOPENV)$/NativeView.java \
$(DESTDESKTOPENV)$/OfficeConnect.java \
$(DESTDESKTOPENV)$/OnewayExecutor.java \
$(DESTDESKTOPENV)$/StatusListener.java \
$(DESTDESKTOPENV)$/StatusView.java \
$(DESTDESKTOPENV)$/ViewContainer.java
DESTASCIIFILTER=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/FilterDevelopment$/AsciiFilter
ASCIIFILTER_FILES=\
$(DESTASCIIFILTER)$/AsciiReplaceFilter.java \
$(DESTASCIIFILTER)$/Factory.java \
$(DESTASCIIFILTER)$/FilterOptions.java \
$(DESTASCIIFILTER)$/Makefile \
$(DESTASCIIFILTER)$/regfilter.bas \
$(DESTASCIIFILTER)$/regfilter.ini \
$(DESTASCIIFILTER)$/TypeDetection.xcu
DESTFILTERDETECTION=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/FilterDevelopment$/FlatXmlFilterDetection
FILTERDETECTION_FILES=\
$(DESTFILTERDETECTION)$/exports.dxp \
$(DESTFILTERDETECTION)$/fdcomp.cxx \
$(DESTFILTERDETECTION)$/filterdetect.cxx \
$(DESTFILTERDETECTION)$/filterdetect.hxx \
$(DESTFILTERDETECTION)$/FlatXMLFilterDetection.uno.xml \
$(DESTFILTERDETECTION)$/Makefile
DESTFLATXMLCPP=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/FilterDevelopment$/FlatXmlFilter_cpp
FLATXMLCPP_FILES=\
$(DESTFLATXMLCPP)$/exports.dxp \
$(DESTFLATXMLCPP)$/FlatXml.cxx \
$(DESTFLATXMLCPP)$/FlatXmlFilter_cpp.uno.xml \
$(DESTFLATXMLCPP)$/Makefile \
$(DESTFLATXMLCPP)$/TypeDetection.xcu
DESTFLATXMLJAVA=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/FilterDevelopment$/FlatXmlFilter_java
FLATXMLJAVA_FILES=\
$(DESTFLATXMLJAVA)$/Makefile \
$(DESTFLATXMLJAVA)$/TypeDetection.xcu \
$(DESTFLATXMLJAVA)$/FlatXml.java
DESTLINGUISTIC=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/Linguistic
LINGUISTIC_FILES=\
$(DESTLINGUISTIC)$/LinguisticExamples.java \
$(DESTLINGUISTIC)$/Makefile \
$(DESTLINGUISTIC)$/OneInstanceFactory.java \
$(DESTLINGUISTIC)$/PropChgHelper.java \
$(DESTLINGUISTIC)$/PropChgHelper_Hyph.java \
$(DESTLINGUISTIC)$/PropChgHelper_Spell.java \
$(DESTLINGUISTIC)$/SampleHyphenator.java \
$(DESTLINGUISTIC)$/SampleSpellChecker.java \
$(DESTLINGUISTIC)$/SampleThesaurus.java \
$(DESTLINGUISTIC)$/XHyphenatedWord_impl.java \
$(DESTLINGUISTIC)$/XMeaning_impl.java \
$(DESTLINGUISTIC)$/XPossibleHyphens_impl.java \
$(DESTLINGUISTIC)$/XSpellAlternatives_impl.java
DESTPATHSETTINGS=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/PathSettings
PATHSETTINGS_FILES=\
$(DESTPATHSETTINGS)$/Makefile \
$(DESTPATHSETTINGS)$/PathSettingsTest.java
DESTPATHSUBSTITUTION=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/PathSubstitution
PATHSUBSTITUTION_FILES=\
$(DESTPATHSUBSTITUTION)$/Makefile \
$(DESTPATHSUBSTITUTION)$/PathSubstitutionTest.java
DESTTERMINATIONTEST=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/TerminationTest
TERMINATION_FILES=\
$(DESTTERMINATIONTEST)$/Makefile \
$(DESTTERMINATIONTEST)$/TerminateListener.java \
$(DESTTERMINATIONTEST)$/TerminationTest.java
DESTDISABLECOMMANDS=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/DisableCommands
DISABLECOMMANDS_FILES=\
$(DESTDISABLECOMMANDS)$/Makefile \
$(DESTDISABLECOMMANDS)$/DisableCommandsTest.java
EXAMPLESLIST= \
$(OFFICEDEV_FILES) \
$(CLIPBOARD_FILES) \
$(DESKTOPENV_FILES) \
$(ASCIIFILTER_FILES) \
$(FILTERDETECTION_FILES) \
$(FLATXMLCPP_FILES) \
$(FLATXMLJAVA_FILES) \
$(LINGUISTIC_FILES) \
$(PATHSETTINGS_FILES) \
$(PATHSUBSTITUTION_FILES) \
$(TERMINATION_FILES) \
$(DISABLECOMMANDS_FILES)
#--------------------------------------------------
# TARGETS
#--------------------------------------------------
all : \
$(EXAMPLESLIST)
#--------------------------------------------------
# use global rules
#--------------------------------------------------
.INCLUDE: $(PRJ)$/util$/odk_rules.pmk
$(DESTDIREXAMPLES)$/%$/office_connectrc : $(PRJ)$/examples$/%$/office_connectrc
+-$(MKDIRHIER) $(@:d)
+-rm -f $@ >& $(NULLDEV)
$(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $< $(MY_TEXTCOPY_TARGETPRE) $@