~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! gmake
 
2
 
 
3
 
4
# The contents of this file are subject to the Mozilla Public
 
5
# License Version 1.1 (the "License"); you may not use this file
 
6
# except in compliance with the License. You may obtain a copy of
 
7
# the License at http://www.mozilla.org/MPL/
 
8
 
9
# Software distributed under the License is distributed on an "AS
 
10
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 
11
# implied. See the License for the specific language governing
 
12
# rights and limitations under the License.
 
13
 
14
# The Original Code is the Netscape Portable Runtime (NSPR).
 
15
 
16
# The Initial Developer of the Original Code is Netscape
 
17
# Communications Corporation.  Portions created by Netscape are 
 
18
# Copyright (C) 1998-2000 Netscape Communications Corporation.  All
 
19
# Rights Reserved.
 
20
 
21
# Contributor(s):
 
22
 
23
# Alternatively, the contents of this file may be used under the
 
24
# terms of the GNU General Public License Version 2 or later (the
 
25
# "GPL"), in which case the provisions of the GPL are applicable 
 
26
# instead of those above.  If you wish to allow use of your 
 
27
# version of this file only under the terms of the GPL and not to
 
28
# allow others to use your version of this file under the MPL,
 
29
# indicate your decision by deleting the provisions above and
 
30
# replace them with the notice and other provisions required by
 
31
# the GPL.  If you do not delete the provisions above, a recipient
 
32
# may use your version of this file under either the MPL or the
 
33
# GPL.
 
34
 
35
 
 
36
 
 
37
MOD_DEPTH       = .
 
38
topsrcdir       = @top_srcdir@
 
39
srcdir          = @srcdir@
 
40
VPATH           = @srcdir@
 
41
 
 
42
include $(MOD_DEPTH)/config/autoconf.mk
 
43
 
 
44
MAKE := $(patsubst -j%,,$(MAKE)) -j1
 
45
 
 
46
DIRS = config pr lib
 
47
 
 
48
ifdef MOZILLA_CLIENT
 
49
# Make nsinstall use absolute symlinks by default for Mozilla OSX builds
 
50
# http://bugzilla.mozilla.org/show_bug.cgi?id=193164
 
51
ifeq ($(OS_ARCH),Darwin)
 
52
ifndef NSDISTMODE
 
53
NSDISTMODE=absolute_symlink
 
54
export NSDISTMODE
 
55
endif
 
56
endif
 
57
endif
 
58
 
 
59
DIST_GARBAGE = config.cache config.log config.status
 
60
 
 
61
all:: config.status export
 
62
 
 
63
include $(topsrcdir)/config/rules.mk
 
64
 
 
65
config.status:: configure
 
66
ifeq ($(OS_ARCH),WINNT)
 
67
        sh $(srcdir)/configure --no-create --no-recursion
 
68
else
 
69
        ./config.status --recheck && ./config.status
 
70
endif
 
71
 
 
72
#
 
73
# The -ll option of zip converts CR LF to LF.
 
74
#
 
75
ifeq ($(OS_ARCH),WINNT)
 
76
ZIP_ASCII_OPT = -ll
 
77
endif
 
78
 
 
79
# Delete config/autoconf.mk last because it is included by every makefile.
 
80
distclean::
 
81
        @echo "cd pr/tests; $(MAKE) $@"
 
82
        @$(MAKE) -C pr/tests $@
 
83
        rm -f config/autoconf.mk
 
84
 
 
85
release::
 
86
        echo $(BUILD_NUMBER) > $(RELEASE_DIR)/$(BUILD_NUMBER)/version.df
 
87
        @if test -f imports.df; then \
 
88
            echo "cp -f imports.df $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df"; \
 
89
            cp -f imports.df $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df; \
 
90
        else \
 
91
            echo "echo > $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df"; \
 
92
            echo > $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df; \
 
93
        fi
 
94
        cd $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME); \
 
95
        rm -rf META-INF; mkdir META-INF; cd META-INF; \
 
96
        echo "Manifest-Version: 1.0" > MANIFEST.MF; \
 
97
        echo "" >> MANIFEST.MF; \
 
98
        cd ..; rm -f mdbinary.jar; zip -r mdbinary.jar META-INF bin lib; \
 
99
        rm -rf META-INF; \
 
100
        cd include; \
 
101
        rm -rf META-INF; mkdir META-INF; cd META-INF; \
 
102
        echo "Manifest-Version: 1.0" > MANIFEST.MF; \
 
103
        echo "" >> MANIFEST.MF; \
 
104
        cd ..; rm -f mdheader.jar; zip $(ZIP_ASCII_OPT) -r mdheader.jar *; \
 
105
        rm -rf META-INF
 
106
ifeq ($(OS_ARCH),WINNT)
 
107
        @if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); then \
 
108
                rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
 
109
                echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)"; \
 
110
                $(topsrcdir)/config/prmkdir.bat $(MDIST_DOS)\\$(MOD_NAME)\\$(BUILD_NUMBER); \
 
111
        fi
 
112
        @if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); then \
 
113
                rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
 
114
                echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME)"; \
 
115
                $(topsrcdir)/config/prmkdir.bat $(MDIST_DOS)\\$(MOD_NAME)\\$(BUILD_NUMBER)\\$(RELEASE_OBJDIR_NAME); \
 
116
        fi
 
117
else
 
118
        @if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); then \
 
119
                rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
 
120
                echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)"; \
 
121
                $(NSINSTALL) -D $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
 
122
                chmod 775 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
 
123
        fi
 
124
        @if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); then \
 
125
                rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
 
126
                echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME)"; \
 
127
                $(NSINSTALL) -D $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
 
128
                chmod 775 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
 
129
        fi
 
130
endif
 
131
        cd $(RELEASE_DIR)/$(BUILD_NUMBER); \
 
132
        cp -f version.df imports.df $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
 
133
        chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/version.df; \
 
134
        chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/imports.df; \
 
135
        cd $(OBJDIR_NAME); \
 
136
        cp -f mdbinary.jar $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
 
137
        chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME)/mdbinary.jar; \
 
138
        cd include; \
 
139
        cp -f mdheader.jar $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
 
140
        chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME)/mdheader.jar
 
141
 
 
142
package:
 
143
        @echo "cd pkg; $(MAKE) publish"
 
144
        $(MAKE) -C pkg publish
 
145
 
 
146
depend:
 
147
        @echo "NSPR20 has no dependencies.  Skipped."