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