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/
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.
14
# The Original Code is the Netscape Portable Runtime (NSPR).
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
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
38
topsrcdir = @top_srcdir@
42
include $(MOD_DEPTH)/config/autoconf.mk
44
MAKE := $(patsubst -j%,,$(MAKE)) -j1
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)
53
NSDISTMODE=absolute_symlink
59
DIST_GARBAGE = config.cache config.log config.status
61
all:: config.status export
63
include $(topsrcdir)/config/rules.mk
65
config.status:: configure
66
ifeq ($(OS_ARCH),WINNT)
67
sh $(srcdir)/configure --no-create --no-recursion
69
./config.status --recheck && ./config.status
73
# The -ll option of zip converts CR LF to LF.
75
ifeq ($(OS_ARCH),WINNT)
79
# Delete config/autoconf.mk last because it is included by every makefile.
81
@echo "cd pr/tests; $(MAKE) $@"
82
@$(MAKE) -C pr/tests $@
83
rm -f config/autoconf.mk
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; \
91
echo "echo > $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df"; \
92
echo > $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df; \
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; \
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 *; \
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); \
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); \
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); \
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); \
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; \
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; \
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
143
@echo "cd pkg; $(MAKE) publish"
144
$(MAKE) -C pkg publish
147
@echo "NSPR20 has no dependencies. Skipped."