xref: /aoo41x/main/odk/util/makefile.mk (revision 122c3632)
1*122c3632SJürgen Schmidt#**************************************************************
2*122c3632SJürgen Schmidt#
3*122c3632SJürgen Schmidt#  Licensed to the Apache Software Foundation (ASF) under one
4*122c3632SJürgen Schmidt#  or more contributor license agreements.  See the NOTICE file
5*122c3632SJürgen Schmidt#  distributed with this work for additional information
6*122c3632SJürgen Schmidt#  regarding copyright ownership.  The ASF licenses this file
7*122c3632SJürgen Schmidt#  to you under the Apache License, Version 2.0 (the
8*122c3632SJürgen Schmidt#  "License"); you may not use this file except in compliance
9*122c3632SJürgen Schmidt#  with the License.  You may obtain a copy of the License at
10*122c3632SJürgen Schmidt#
11*122c3632SJürgen Schmidt#    http://www.apache.org/licenses/LICENSE-2.0
12*122c3632SJürgen Schmidt#
13*122c3632SJürgen Schmidt#  Unless required by applicable law or agreed to in writing,
14*122c3632SJürgen Schmidt#  software distributed under the License is distributed on an
15*122c3632SJürgen Schmidt#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*122c3632SJürgen Schmidt#  KIND, either express or implied.  See the License for the
17*122c3632SJürgen Schmidt#  specific language governing permissions and limitations
18*122c3632SJürgen Schmidt#  under the License.
19*122c3632SJürgen Schmidt#
20*122c3632SJürgen Schmidt#**************************************************************
21cdf0e10cSrcweirPRJ=..
22cdf0e10cSrcweirPRJNAME=odk
23cdf0e10cSrcweirTARGET=odk
24cdf0e10cSrcweir
25cdf0e10cSrcweir# ------------------------------------------------------------------
26cdf0e10cSrcweir.INCLUDE: settings.mk
27cdf0e10cSrcweir.INCLUDE: makefile.pmk
28cdf0e10cSrcweir# ------------------------------------------------------------------
29cdf0e10cSrcweir.IF "$(L10N_framework)"==""
30cdf0e10cSrcweir
31cdf0e10cSrcweirZIP1TARGET=odkexamples
32cdf0e10cSrcweirZIP1FLAGS=-u -r
33cdf0e10cSrcweirZIP1DIR=$(PRJ)
34cdf0e10cSrcweirZIP1LIST=examples -x "*.svn*" -x "*CVS*" -x "*makefile.mk" -x "*Inspector*" -x "*Container1*" -x "*Storage*" -x "*register_component*" -x "*examples.html" -x "*ConverterServlet*" -x "*NotesAccess*" -x "*delphi*"
35cdf0e10cSrcweir
36cdf0e10cSrcweir.ENDIF
37cdf0e10cSrcweir
38cdf0e10cSrcweir.INCLUDE :  target.mk
39cdf0e10cSrcweir.IF "$(L10N_framework)"==""
40cdf0e10cSrcweirALLTAR:\
41cdf0e10cSrcweir    $(BIN)$/$(PRODUCTZIPFILE)
42cdf0e10cSrcweir#    $(BIN)$/odk_oo.zip
43cdf0e10cSrcweir.ENDIF
44cdf0e10cSrcweir
45cdf0e10cSrcweir$(BIN)$/$(PRODUCTZIPFILE) : $(SDK_CONTENT_CHECK_FILES) $(SDK_CHECK_FLAGS)
46cdf0e10cSrcweir	cd $(BIN)$/$(PRODUCT_NAME) && zip -urq ..$/$(PRODUCTZIPFILE) . $(CHECKZIPRESULT)
47cdf0e10cSrcweir	$(PERL) -w $(SOLARENV)$/bin$/cleanzip.pl $@
48cdf0e10cSrcweir#	cd $(BIN)$/$(PRODUCT_NAME) && zip -urq ..$/$(PRODUCTZIPFILE) . -x "idl/*" $(CHECKZIPRESULT)
49cdf0e10cSrcweir#	cd $(BIN)$/$(PRODUCT_NAME) && zip -urq ..$/odkidl.zip idl/* $(CHECKZIPRESULT)
50cdf0e10cSrcweir
51cdf0e10cSrcweirODK_OO_FILES=\
52cdf0e10cSrcweir	$(PRJ)$/index.html \
53cdf0e10cSrcweir	$(PRJ)$/docs$/tools.html \
54cdf0e10cSrcweir	$(PRJ)$/docs$/notsupported.html \
55cdf0e10cSrcweir	$(PRJ)$/docs$/install.html \
56cdf0e10cSrcweir	$(PRJ)$/docs$/sdk_styles.css \
57cdf0e10cSrcweir	$(PRJ)$/docs$/images$/arrow-1.gif \
58cdf0e10cSrcweir	$(PRJ)$/docs$/images$/arrow-3.gif \
59cdf0e10cSrcweir	$(PRJ)$/docs$/images$/bg_table.gif \
60cdf0e10cSrcweir	$(PRJ)$/docs$/images$/bg_table2.gif \
61cdf0e10cSrcweir	$(PRJ)$/docs$/images$/bg_table3.gif \
62cdf0e10cSrcweir	$(PRJ)$/docs$/images$/nav_down.png \
63cdf0e10cSrcweir	$(PRJ)$/docs$/images$/nav_home.png \
64cdf0e10cSrcweir	$(PRJ)$/docs$/images$/nav_left.png \
65cdf0e10cSrcweir	$(PRJ)$/docs$/images$/nav_right.png \
66cdf0e10cSrcweir	$(PRJ)$/docs$/images$/nav_up.png \
67cdf0e10cSrcweir	$(PRJ)$/docs$/images$/sdk_head-1.gif \
68cdf0e10cSrcweir	$(PRJ)$/docs$/images$/sdk_head-2.gif \
69cdf0e10cSrcweir	$(PRJ)$/docs$/images$/sdk_head-3.gif \
70cdf0e10cSrcweir	$(PRJ)$/docs$/images$/sdk_line-1.gif \
71cdf0e10cSrcweir	$(PRJ)$/docs$/images$/sdk_line-2.gif \
72cdf0e10cSrcweir	$(PRJ)$/examples$/examples.html \
73cdf0e10cSrcweir	$(PRJ)$/examples$/DevelopersGuide$/examples.html
74cdf0e10cSrcweir
75cdf0e10cSrcweir
76cdf0e10cSrcweir$(BIN)$/odk_oo.zip : $(ODK_OO_FILES)
77cdf0e10cSrcweir	cd $(PRJ) && zip -urq $(subst,$(PRJ)$/, $(BIN)$/odk_oo.zip) $(subst,$(PRJ)$/, $<) $(CHECKZIPRESULT)
78cdf0e10cSrcweir
79