forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nglayout.mk
191 lines (162 loc) · 4.4 KB
/
nglayout.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = .
THIS_MAKEFILE = nglayout.mk
# Branch tags we use
LIBPREF_BRANCH = XPCOM_BRANCH
NETLIB_BRANCH =
PLUGIN_BRANCH =
ifdef MOZ_DATE
CVSCO = cvs -q co -P -D $(MOZ_DATE)
CVSCO_PLUGIN = $(CVSCO)
else
CVSCO = cvs -q co -P
CVSCO_PLUGIN = $(CVSCO) -A
endif
CVSCO_IMGLIB = $(CVSCO)
CVSCO_LIBPREF = $(CVSCO) -r $(LIBPREF_BRANCH)
CVSCO_LIZARD = $(CVSCO)
CVSCO_NETLIB = $(CVSCO)
CVSCO_NGLAYOUT = $(CVSCO)
# The list of directories that need to be built to build the standalone
# nglayout test program. The order is important.
DIRS = \
config \
dbm \
nsprpub \
jpeg \
modules/libreg \
xpcom \
modules/zlib \
modules/libutil \
sun-java \
nav-java \
js \
modules/security/freenav \
modules/libpref \
modules/libimg \
modules/oji \
modules/plugin \
base \
caps \
lib/xp \
lib/libpwcac \
network \
lib/liblayer/include \
htmlparser \
gfx \
dom \
view \
widget \
layout \
editor \
webshell
real_all: all
real_export: export
real_libs: libs
real_install: install
real_clobber: clobber
real_depend: depend
#
# Rules for pulling the source from the cvs repository
#
pull_all: pull_lizard pull_xpcom pull_imglib pull_netlib pull_nglayout pull_editor pull_plugin pull_autoconf
pull_lizard:
cd $(DEPTH)/..; \
$(CVSCO_LIZARD) mozilla/config; \
$(CVSCO_LIZARD) mozilla/dbm; \
$(CVSCO_LIZARD) mozilla/build/build_number; \
$(CVSCO_LIZARD) mozilla/cmd/xfe/icons/icondata.h; \
$(CVSCO_LIZARD) mozilla/lib/liblayer; \
$(CVSCO_LIZARD) mozilla/modules/zlib; \
$(CVSCO_LIZARD) mozilla/modules/libutil; \
$(CVSCO_LIZARD) mozilla/nsprpub; \
$(CVSCO_LIZARD) mozilla/sun-java; \
$(CVSCO_LIZARD) mozilla/nav-java; \
$(CVSCO_LIZARD) mozilla/js; \
$(CVSCO_LIZARD) mozilla/caps; \
$(CVSCO_LIZARD) mozilla/modules/security/freenav; \
$(CVSCO_LIZARD) mozilla/rdf;
pull_xpcom:
cd $(DEPTH)/..; \
$(CVSCO) -A mozilla/modules/libreg; \
$(CVSCO) -A mozilla/xpcom; \
$(CVSCO_LIBPREF) mozilla/modules/libpref
pull_imglib:
cd $(DEPTH)/..; \
$(CVSCO_IMGLIB) mozilla/jpeg; \
$(CVSCO_IMGLIB) mozilla/modules/libutil; \
$(CVSCO_IMGLIB) mozilla/modules/libimg
pull_plugin:
cd $(DEPTH)/..; \
$(CVSCO_LIZARD) mozilla/modules/oji; \
$(CVSCO_PLUGIN) mozilla/modules/plugin
pull_netlib:
cd $(DEPTH)/..; \
$(CVSCO_NETLIB) mozilla/lib/xp; \
$(CVSCO_NETLIB) mozilla/lib/libpwcac; \
$(CVSCO_NETLIB) mozilla/network; \
$(CVSCO_NETLIB) mozilla/include
pull_nglayout:
cd $(DEPTH)/..; \
$(CVSCO_NGLAYOUT) mozilla/base; \
$(CVSCO_NGLAYOUT) mozilla/dom; \
$(CVSCO_NGLAYOUT) mozilla/gfx; \
$(CVSCO_NGLAYOUT) mozilla/htmlparser; \
$(CVSCO_NGLAYOUT) mozilla/layout; \
$(CVSCO_NGLAYOUT) mozilla/view; \
$(CVSCO_NGLAYOUT) mozilla/webshell; \
$(CVSCO_NGLAYOUT) mozilla/widget
pull_editor:
cd $(DEPTH)/..; \
$(CVSCO_NGLAYOUT) mozilla/editor
pull_doc:
cd $(DEPTH)/..; \
$(CVSCO_NGLAYOUT) README/nglayout; \
$(CVSCO_NGLAYOUT) mozilla/LICENSE; \
$(CVSCO_NGLAYOUT) mozilla/LEGAL
pull_autoconf:
cd $(DEPTH)/..; \
$(CVSCO_NGLAYOUT) mozilla/build/autoconf; \
$(CVSCO_NGLAYOUT) mozilla/build/hcc; \
$(CVSCO_NGLAYOUT) mozilla/build/hcpp; \
$(CVSCO_NGLAYOUT) mozilla/xpfe; \
$(CVSCO_NGLAYOUT) mozilla/Makefile.in; \
$(CVSCO_NGLAYOUT) mozilla/aclocal.m4; \
$(CVSCO_NGLAYOUT) mozilla/configure.in;
######################################################################
#
# Build tarball
DATE_CMD = date
DATE = $(shell $(DATE_CMD) +%Y%m%d)
TAR = tar
GZIP = gzip
TARBALL = $(MOZ_SRC)/unix-$(DATE).tar
TARFILES = mozilla README/nglayout
tarball: pull_all pull_doc clobber clobber_all real_tar
real_tar:
@echo Making $(TARBALL)
cd $(DEPTH)/..; \
rm -f $(TARBALL) $(TARBALL).gz; \
$(TAR) cf $(TARBALL) $(TARFILES)
@echo Making gzip of $(TARBALL); \
cd $(DEPTH)/..; \
$(GZIP) -9 -q $(TARBALL)