source: trunk/third/firefox/calendar/Makefile.in @ 21695

Revision 21695, 4.2 KB checked in by rbasch, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21694, which included commits to RCS files with non-trunk default branches.
Line 
1# ***** BEGIN LICENSE BLOCK *****
2# Version: MPL 1.1/GPL 2.0/LGPL 2.1
3#
4# The contents of this file are subject to the Mozilla Public License Version
5# 1.1 (the "License"); you may not use this file except in compliance with
6# the License. You may obtain a copy of the License at
7# http://www.mozilla.org/MPL/
8#
9# Software distributed under the License is distributed on an "AS IS" basis,
10# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11# for the specific language governing rights and limitations under the
12# License.
13#
14# The Original Code is mozilla.org code.
15#
16# The Initial Developer of the Original Code is
17# Netscape Communications Corporation.
18# Portions created by the Initial Developer are Copyright (C) 2001
19# the Initial Developer. All Rights Reserved.
20#
21# Contributor(s):
22#
23# Alternatively, the contents of this file may be used under the terms of
24# either the GNU General Public License Version 2 or later (the "GPL"), or
25# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
26# in which case the provisions of the GPL or the LGPL are applicable instead
27# of those above. If you wish to allow use of your version of this file only
28# under the terms of either the GPL or the LGPL, and not to allow others to
29# use your version of this file under the terms of the MPL, indicate your
30# decision by deleting the provisions above and replace them with the notice
31# and other provisions required by the GPL or the LGPL. If you do not delete
32# the provisions above, a recipient may use your version of this file under
33# the terms of any one of the MPL, the GPL or the LGPL.
34#
35# ***** END LICENSE BLOCK *****
36
37DEPTH           = ..
38topsrcdir       = @top_srcdir@
39srcdir          = @srcdir@
40VPATH           = @srcdir@
41
42include $(DEPTH)/config/autoconf.mk
43
44MODULE  = calendar
45DIRS = libxpical resources
46
47include $(topsrcdir)/config/rules.mk
48
49macxpi::
50        rm -f calendar_mac.xpi
51        rm -rf linux/components
52        rm -rf linux/resources
53
54        echo "Building Mac xpi..."
55        cp -r resources ./linux
56        ./createBuildId.pl ./linux/resources/content/about.html
57        cd linux
58        mkdir -p ./linux/components
59        cp libxpical/libxpical.dylib ./linux/components
60        cp libxpical/_xpidlgen/calendar.xpt ./linux/components
61        cp resources/content/calendarService.js ./linux/components
62        cd linux; find components/ resources/ icons/ install.js \( -name CVS -o -name Makefile -o -name makefile.win -o -name Makefile.in -o -name test -o -name .cvsignore \) -prune -o -print | xargs zip calendar_mac.xpi
63        mv ./linux/calendar_mac.xpi .
64        echo "Done."
65
66openvmsxpi::
67        rm -f calendar_openvms.xpi
68        rm -rf linux/components
69        rm -rf linux/resources
70        echo "Building OpenVMS xpi..."
71        cp $(srcdir)/install.js ./linux
72        cp -r $(srcdir)/resources ./linux
73        cp -r $(srcdir)/linux/icons ./linux
74        $(PERL) $(srcdir)/createBuildId.pl ./linux/resources/content/about.html
75        mkdir -p ./linux/components
76        cp libxpical/libxpical.so ./linux/components
77        cp libxpical/_xpidlgen/calendar.xpt ./linux/components
78        cp $(srcdir)/resources/content/calendarService.js ./linux/components
79        cd linux; \
80        find components/ resources/ icons/ install.js \( \
81        -name CVS -o -name Makefile -o -name makefile.win -o \
82        -name Makefile.in -o -name test -o -name .cvsignore \
83        \) -prune -o -print | zip -u -D -@ calendar_openvms.xpi
84        mv ./linux/calendar_openvms.xpi .
85        echo "Done."
86
87ifeq ($(OS_ARCH),WINNT)
88calplatform=windows
89else
90ifeq ($(OS_ARCH),OS2)
91calplatform=os2
92else
93calplatform=linux
94endif
95endif
96
97xpi::
98        rm -f calendar.xpi
99        rm -rf xpi
100
101        echo "Building xpi..."
102
103        $(PERL) $(srcdir)/createBuildId.pl $(srcdir)/resources/content/about.html
104        make
105        mkdir -p ./xpi/bin/components
106        mkdir -p ./xpi/bin/chrome
107        mkdir -p ./xpi/resources
108        cp $(DEPTH)/dist/bin/chrome/calendar.jar ./xpi/bin/chrome
109        cp libxpical/$(LIB_PREFIX)xpical$(DLL_SUFFIX) ./xpi/bin/components
110        cp libxpical/_xpidlgen/calendar.xpt ./xpi/bin/components
111        cp $(srcdir)/resources/content/calendarService.js ./xpi/bin/components
112        cp -r $(srcdir)/resources/locale ./xpi/resources
113        cp -r $(srcdir)/$(calplatform)/icons ./xpi
114        if [ $(calplatform) = "linux" ]; then \
115           mkdir -p xpi/bin/init.d; \
116           cp $(topsrcdir)/xpfe/bootstrap/init.d/???calendar* xpi/bin/init.d; \
117        fi
118        cp $(srcdir)/install.js ./xpi
119        cd xpi; find bin resources icons install.js \( -name CVS -o -name en-US \) -prune -o -print | xargs zip calendar.xpi
120
121        echo "Done."
Note: See TracBrowser for help on using the repository browser.