Update ooo320-m1
[ooovba.git] / odk / examples / DevelopersGuide / ProfUNO / makefile.mk
blob459f28d86cc76be74db2b1b43bf8fd357ef9ef01
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.8 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..$/..$/..
33 PRJNAME=odk
34 TARGET=copying
36 #----------------------------------------------------------------
37 .INCLUDE: settings.mk
38 .INCLUDE: $(PRJ)$/util$/makefile.pmk
39 #----------------------------------------------------------------
41 #----------------------------------------------------
42 # this makefile is only used for copying the example
43 # files into the SDK
44 #----------------------------------------------------
46 CPPBINDING_FILES=\
47 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/CppBinding$/Makefile \
48 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/CppBinding$/office_connect.cxx \
49 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/CppBinding$/office_connect.ini \
50 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/CppBinding$/office_connectrc \
51 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/CppBinding$/string_samples.cxx
53 INTERPROCESSCONN_FILES=\
54 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/InterprocessConn$/ConnectionAwareClient.java \
55 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/InterprocessConn$/Makefile \
56 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/InterprocessConn$/UrlResolver.java
58 LIFETIME_FILES=\
59 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/Lifetime$/Makefile \
60 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/Lifetime$/MyUnoObject.java \
61 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/Lifetime$/object_lifetime.cxx
63 SIMPLEBOOTSTRAP_JAVA_FILES=\
64 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/SimpleBootstrap_java$/SimpleBootstrap_java.java \
65 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/SimpleBootstrap_java$/manifest.mf \
66 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/SimpleBootstrap_java$/Makefile
68 SIMPLEBOOTSTRAP_CPP_FILES=\
69 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/SimpleBootstrap_cpp$/SimpleBootstrap_cpp.cxx \
70 $(DESTDIRDEVGUIDEEXAMPLES)$/ProfUNO$/SimpleBootstrap_cpp$/Makefile
72 DIR_FILE_LIST= \
73 $(CPPBINDING_FILES) \
74 $(INTERPROCESSCONN_FILES) \
75 $(LIFETIME_FILES) \
76 $(SIMPLEBOOTSTRAP_JAVA_FILES) \
77 $(SIMPLEBOOTSTRAP_CPP_FILES)
79 DIR_DIRECTORY_LIST=$(uniq $(DIR_FILE_LIST:d))
80 DIR_CREATE_FLAG=$(MISC)$/devguide_profuno_dirs_created.txt
81 DIR_FILE_FLAG=$(MISC)$/devguide_profuno.txt
83 #--------------------------------------------------
84 # TARGETS
85 #--------------------------------------------------
86 all : \
87 $(DIR_FILE_LIST) \
88 $(DIR_FILE_FLAG)
90 #--------------------------------------------------
91 # use global rules
92 #--------------------------------------------------
93 .INCLUDE: $(PRJ)$/util$/odk_rules.pmk
95 $(DESTDIREXAMPLES)$/%$/office_connectrc : $(PRJ)$/examples$/%$/office_connectrc
96 -$(MKDIRHIER) $(@:d)
97 @@-rm -f $@
98 $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $< $(MY_TEXTCOPY_TARGETPRE) $@