1998-05-09 00:18:35 +04:00
|
|
|
# The contents of this file are subject to the Netscape Public License
|
|
|
|
# Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
# compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
# http://www.mozilla.org/NPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# NPL.
|
|
|
|
#
|
|
|
|
# The Initial Developer of this code under the NPL is Netscape
|
|
|
|
# Communications Corporation. Portions created by Netscape are
|
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
# Reserved.
|
|
|
|
|
|
|
|
DEPTH=.
|
|
|
|
IGNORE_MANIFEST=1
|
|
|
|
THIS_MAKEFILE=nglayout.mak
|
|
|
|
THAT_MAKEFILE=makefile.win
|
|
|
|
|
1998-07-28 03:08:52 +04:00
|
|
|
!if !defined(MODULAR_NETLIB) || !defined(STANDALONE_IMAGE_LIB) || !defined(NGLAYOUT_PLUGINS)
|
1998-12-23 14:01:34 +03:00
|
|
|
#ERR_MSG = ^
|
|
|
|
#You need to set MODULAR_NETLIB=1, STANDALONE_IMAGE_LIB=1 ^
|
|
|
|
#and NGLAYOUT_PLUGINS=1 in your environment.
|
|
|
|
#!ERROR $(ERR_MSG)
|
|
|
|
set MODULAR_NETLIB=1
|
|
|
|
set STANDALONE_IMAGE_LIB=1
|
|
|
|
set NGLAYOUT_PLUGINS=1
|
1998-05-30 02:37:52 +04:00
|
|
|
!endif
|
|
|
|
|
1998-05-09 00:18:35 +04:00
|
|
|
!if !defined(MOZ_TOP)
|
|
|
|
#enable builds from changed top level directories
|
|
|
|
MOZ_TOP=mozilla
|
|
|
|
!endif
|
|
|
|
|
|
|
|
include <$(DEPTH)\config\config.mak>
|
|
|
|
|
|
|
|
# This section is copied from rules.mak
|
|
|
|
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
W95MAKE=$(MOZ_SRC)\$(MOZ_TOP)\config\w95make.exe
|
|
|
|
W32OBJS = $(OBJS:.obj=.obj, )
|
|
|
|
W32LOBJS = $(OBJS: .= +-.)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
# This makefile is designed to make building the nglayout viewer
|
|
|
|
# application easy.
|
|
|
|
|
|
|
|
#
|
|
|
|
# Command macro defines
|
|
|
|
#
|
|
|
|
|
1998-10-02 21:50:50 +04:00
|
|
|
!if defined(MOZ_DATE)
|
1998-10-02 22:50:36 +04:00
|
|
|
CVSCO = cvs -q co -P -D "$(MOZ_DATE)"
|
1998-10-02 21:50:50 +04:00
|
|
|
!else
|
1998-05-09 00:18:35 +04:00
|
|
|
CVSCO = cvs -q co -P
|
1998-10-02 21:50:50 +04:00
|
|
|
!endif
|
1998-05-09 00:18:35 +04:00
|
|
|
|
1998-11-25 11:15:02 +03:00
|
|
|
CVSCO_TAG = cvs -q co -P
|
|
|
|
|
1998-05-09 00:18:35 +04:00
|
|
|
# Branch tags we use
|
1998-10-02 21:50:50 +04:00
|
|
|
|
1998-08-01 09:47:19 +04:00
|
|
|
IMGLIB_BRANCH =
|
|
|
|
PLUGIN_BRANCH =
|
|
|
|
XPCOM_BRANCH =
|
1998-05-09 00:18:35 +04:00
|
|
|
|
1998-12-23 14:01:34 +03:00
|
|
|
##############################
|
|
|
|
## all this pull logic now exists in client.mak
|
|
|
|
## which is the right place for it to be.
|
|
|
|
## It should be removed from here as soon as practical
|
|
|
|
##############################
|
|
|
|
|
1998-10-02 21:50:50 +04:00
|
|
|
!if defined(MOZ_DATE)
|
|
|
|
# CVS commands to pull the appropriate branch versions
|
1998-11-25 00:33:18 +03:00
|
|
|
CVSCO_LIBPREF = $(CVSCO)
|
1998-10-02 21:50:50 +04:00
|
|
|
CVSCO_PLUGIN = $(CVSCO)
|
|
|
|
!else
|
1998-05-09 00:18:35 +04:00
|
|
|
# CVS commands to pull the appropriate branch versions
|
1998-11-25 00:33:18 +03:00
|
|
|
CVSCO_LIBPREF = $(CVSCO) -A
|
1998-10-02 21:50:50 +04:00
|
|
|
CVSCO_PLUGIN = $(CVSCO) -A
|
|
|
|
!endif
|
|
|
|
|
|
|
|
CVSCO_XPCOM = $(CVSCO)
|
1998-07-30 02:48:44 +04:00
|
|
|
CVSCO_IMGLIB = $(CVSCO)
|
1998-05-09 00:18:35 +04:00
|
|
|
CVSCO_RAPTOR = $(CVSCO)
|
|
|
|
CVSCO_LIZARD = $(CVSCO)
|
1998-06-04 22:00:36 +04:00
|
|
|
CVSCO_NETWORK = $(CVSCO)
|
1998-10-02 21:50:50 +04:00
|
|
|
|
1998-05-09 00:18:35 +04:00
|
|
|
|
|
|
|
# The list of directories that need to be built to build the
|
|
|
|
# standalone nglayout test program. The order is important. The
|
|
|
|
# DIST_DIRS need to be built before the RAPTOR_DIRS.
|
|
|
|
|
|
|
|
DIST_DIRS = \
|
1998-12-04 22:55:37 +03:00
|
|
|
config \
|
1998-06-05 05:38:52 +04:00
|
|
|
dbm \
|
1998-05-09 00:18:35 +04:00
|
|
|
nsprpub \
|
|
|
|
include \
|
|
|
|
jpeg \
|
|
|
|
modules\libreg \
|
|
|
|
xpcom \
|
|
|
|
modules\zlib \
|
|
|
|
modules\libutil \
|
|
|
|
sun-java \
|
|
|
|
js \
|
|
|
|
modules\security\freenav \
|
|
|
|
modules\libpref \
|
|
|
|
modules\libimg \
|
1998-07-24 00:36:48 +04:00
|
|
|
modules\plugin \
|
1998-09-28 02:09:41 +04:00
|
|
|
modules\oji \
|
1998-05-09 00:18:35 +04:00
|
|
|
base \
|
1999-02-01 23:56:47 +03:00
|
|
|
intl \
|
1998-11-21 09:05:24 +03:00
|
|
|
caps \
|
1998-05-09 00:18:35 +04:00
|
|
|
lib\xp \
|
1998-06-05 05:38:52 +04:00
|
|
|
lib\libpwcac \
|
1998-09-22 04:55:04 +04:00
|
|
|
network \
|
|
|
|
!if defined(NGPREFS)
|
|
|
|
cmd\wincom \
|
|
|
|
cmd\winfe\prefs \
|
|
|
|
!endif
|
|
|
|
$(NULL)
|
1998-05-09 00:18:35 +04:00
|
|
|
|
|
|
|
# The list of directories to build the nglayout layout engine and
|
|
|
|
# related libraries.
|
|
|
|
|
|
|
|
RAPTOR_DIRS = \
|
1998-11-11 12:26:06 +03:00
|
|
|
editor \
|
1998-05-09 00:18:35 +04:00
|
|
|
htmlparser \
|
|
|
|
gfx \
|
1998-10-02 02:23:48 +04:00
|
|
|
dom \
|
1998-05-09 00:18:35 +04:00
|
|
|
view \
|
|
|
|
widget \
|
|
|
|
layout \
|
1998-12-02 03:23:18 +03:00
|
|
|
rdf \
|
1999-01-20 02:35:21 +03:00
|
|
|
silentdl \
|
1998-12-16 06:59:13 +03:00
|
|
|
webshell
|
1998-05-09 00:18:35 +04:00
|
|
|
|
|
|
|
# Main rules
|
|
|
|
|
|
|
|
all:: all_dist all_nglayout
|
|
|
|
|
|
|
|
export:: export_dist export_nglayout
|
|
|
|
|
|
|
|
libs:: libs_dist libs_nglayout
|
|
|
|
|
|
|
|
install:: install_dist install_nglayout
|
|
|
|
|
1999-02-19 02:37:43 +03:00
|
|
|
makedep.exe: $(MOZ_SRC)\mozilla\config\makedep.cpp
|
|
|
|
cd $(MOZ_SRC)\mozilla\config
|
|
|
|
!if "$(WINOS)" != "WINNT"
|
|
|
|
@$(W95MAKE) makefile.win export
|
|
|
|
!else
|
|
|
|
$(NMAKE) -f makefile.win export
|
|
|
|
!endif
|
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)
|
|
|
|
|
|
|
|
depend:: makedep.exe depend_dist depend_nglayout
|
1998-05-09 00:18:35 +04:00
|
|
|
|
|
|
|
clobber:: clobber_dist clobber_nglayout
|
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)
|
1998-10-26 20:15:44 +03:00
|
|
|
-rm -r -f dist
|
1998-05-09 00:18:35 +04:00
|
|
|
|
|
|
|
clobber_all:: clobber_all_dist clobber_all_nglayout
|
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)
|
1998-12-03 07:25:14 +03:00
|
|
|
-rd /s /q dist
|
1998-10-26 20:15:44 +03:00
|
|
|
-rm -r -f dist
|
1998-05-09 00:18:35 +04:00
|
|
|
|
1998-12-03 07:25:14 +03:00
|
|
|
browse_info::
|
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)
|
|
|
|
-dir /s /b *.sbr > sbrlist.tmp
|
|
|
|
-bscmake /n /o nglayout.bsc @sbrlist.tmp
|
|
|
|
-rm sbrlist.tmp
|
|
|
|
|
1998-05-09 00:18:35 +04:00
|
|
|
######################################################################
|
|
|
|
|
|
|
|
# Rule to build subdirectories
|
|
|
|
|
|
|
|
$(DIST_DIRS) $(RAPTOR_DIRS)::
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
@echo +++ make: cannot recursively make on win95 using command.com, use w95make.
|
|
|
|
!else
|
|
|
|
@echo +++ make: %MAKE_ARGS% in $(MAKEDIR)\$@
|
|
|
|
@cd $@
|
|
|
|
@$(NMAKE) -f $(THAT_MAKEFILE) %%MAKE_ARGS%%
|
|
|
|
@cd $(MAKEDIR)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
1998-12-23 14:01:34 +03:00
|
|
|
##############################
|
|
|
|
## all this pull logic now exists in client.mak
|
|
|
|
## which is the right place for it to be.
|
|
|
|
## It should be removed from here as soon as practical
|
|
|
|
##############################
|
|
|
|
|
1998-05-09 00:18:35 +04:00
|
|
|
# Rules for pulling the source from the cvs repository
|
|
|
|
|
1998-12-23 14:01:34 +03:00
|
|
|
pull_all: pull_seamonkey
|
|
|
|
|
1999-01-06 03:42:05 +03:00
|
|
|
pull_nglayout: pull_lizard pull_xpcom pull_imglib pull_netlib pull_nglayoutcore \
|
1998-11-11 12:26:06 +03:00
|
|
|
pull_editor
|
1998-05-09 00:18:35 +04:00
|
|
|
|
1998-12-23 14:01:34 +03:00
|
|
|
pull_seamonkey:
|
|
|
|
cd $(MOZ_SRC)\.
|
1999-01-23 09:59:09 +03:00
|
|
|
# $(CVSCO_TAG) -r NSPRPUB_RELEASE_3_0 NSPR
|
1998-12-23 14:01:34 +03:00
|
|
|
$(CVSCO_LIZARD) SeaMonkeyEditor
|
|
|
|
|
1998-05-09 00:18:35 +04:00
|
|
|
pull_lizard:
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/LICENSE
|
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/LEGAL
|
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/config
|
1998-06-05 05:38:52 +04:00
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/dbm
|
1998-05-09 00:18:35 +04:00
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/modules/zlib
|
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/modules/libutil
|
1998-11-25 11:15:02 +03:00
|
|
|
$(CVSCO_TAG) -r NSPRPUB_RELEASE_3_0 $(MOZ_TOP)/nsprpub
|
1998-05-09 00:18:35 +04:00
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/sun-java
|
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/nav-java
|
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/js
|
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/modules/security/freenav
|
1998-07-24 00:36:48 +04:00
|
|
|
$(CVSCO_LIBPREF) $(MOZ_TOP)/modules/libpref
|
|
|
|
$(CVSCO_PLUGIN) $(MOZ_TOP)/modules/plugin
|
1998-09-28 02:09:41 +04:00
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/modules/oji
|
1998-11-21 09:05:24 +03:00
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/caps
|
1998-12-02 03:57:34 +03:00
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/rdf
|
1999-01-22 02:53:08 +03:00
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/intl
|
1998-09-22 04:55:04 +04:00
|
|
|
!if defined(NGPREFS)
|
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/cmd/wincom
|
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/cmd/winfe/defaults.h
|
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/cmd/winfe/nsIDefaultBrowser.h
|
|
|
|
$(CVSCO_LIZARD) $(MOZ_TOP)/cmd/winfe/prefs
|
|
|
|
!endif
|
1998-05-09 00:18:35 +04:00
|
|
|
|
|
|
|
pull_xpcom:
|
|
|
|
@cd $(MOZ_SRC)\.
|
1998-07-24 00:36:48 +04:00
|
|
|
$(CVSCO_XPCOM) $(MOZ_TOP)/modules/libreg
|
|
|
|
$(CVSCO_XPCOM) $(MOZ_TOP)/xpcom
|
1998-05-09 00:18:35 +04:00
|
|
|
|
|
|
|
pull_imglib:
|
|
|
|
@cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO_IMGLIB) $(MOZ_TOP)/jpeg
|
|
|
|
$(CVSCO_IMGLIB) $(MOZ_TOP)/modules/libutil
|
|
|
|
$(CVSCO_IMGLIB) $(MOZ_TOP)/modules/libimg
|
|
|
|
|
|
|
|
pull_netlib:
|
|
|
|
@cd $(MOZ_SRC)\.
|
1998-05-28 04:52:44 +04:00
|
|
|
$(CVSCO_NETWORK) $(MOZ_TOP)/lib/xp
|
1998-06-05 05:38:52 +04:00
|
|
|
$(CVSCO_NETWORK) $(MOZ_TOP)/lib/libpwcac
|
1998-05-28 04:52:44 +04:00
|
|
|
$(CVSCO_NETWORK) $(MOZ_TOP)/network
|
|
|
|
$(CVSCO_NETWORK) $(MOZ_TOP)/include
|
1998-05-09 00:18:35 +04:00
|
|
|
|
1999-01-06 03:42:05 +03:00
|
|
|
pull_nglayoutcore:
|
1998-05-09 00:18:35 +04:00
|
|
|
@cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO_RAPTOR) $(MOZ_TOP)/base
|
|
|
|
$(CVSCO_RAPTOR) $(MOZ_TOP)/dom
|
|
|
|
$(CVSCO_RAPTOR) $(MOZ_TOP)/gfx
|
|
|
|
$(CVSCO_RAPTOR) $(MOZ_TOP)/htmlparser
|
|
|
|
$(CVSCO_RAPTOR) $(MOZ_TOP)/layout
|
|
|
|
$(CVSCO_RAPTOR) $(MOZ_TOP)/view
|
|
|
|
$(CVSCO_RAPTOR) $(MOZ_TOP)/webshell
|
|
|
|
$(CVSCO_RAPTOR) $(MOZ_TOP)/widget
|
1998-10-10 02:13:38 +04:00
|
|
|
$(CVSCO_RAPTOR) $(MOZ_TOP)/xpfe
|
1998-05-09 00:18:35 +04:00
|
|
|
|
1998-11-11 12:26:06 +03:00
|
|
|
pull_editor:
|
|
|
|
@cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO_RAPTOR) $(MOZ_TOP)/editor
|
1998-05-09 00:18:35 +04:00
|
|
|
######################################################################
|
|
|
|
|
|
|
|
# Build rules for the "dist" portion. The "dist" contains those things
|
|
|
|
# which are imported by the nglayout test programs.
|
|
|
|
|
|
|
|
all_dist:
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)
|
|
|
|
$(NMAKE) -f $(THIS_MAKEFILE) export_dist
|
|
|
|
$(NMAKE) -f $(THIS_MAKEFILE) libs_dist
|
|
|
|
$(NMAKE) -f $(THIS_MAKEFILE) install_dist
|
|
|
|
|
|
|
|
export_dist::
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
@$(W95MAKE) export $(MAKEDIR) $(DIST_DIRS)
|
|
|
|
!else
|
|
|
|
@set MAKE_ARGS=export
|
|
|
|
|
|
|
|
export_dist:: $(DIST_DIRS)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
libs_dist::
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
@$(W95MAKE) libs $(MAKEDIR) $(DIST_DIRS)
|
|
|
|
!else
|
|
|
|
@set MAKE_ARGS=libs
|
|
|
|
|
|
|
|
libs_dist:: $(DIST_DIRS)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
install_dist::
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
@$(W95MAKE) install $(MAKEDIR) $(DIST_DIRS)
|
|
|
|
!else
|
|
|
|
@set MAKE_ARGS=install
|
|
|
|
|
|
|
|
install_dist:: $(DIST_DIRS)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
depend_dist::
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
@$(W95MAKE) depend $(MAKEDIR) $(DIST_DIRS)
|
|
|
|
!else
|
|
|
|
@set MAKE_ARGS=depend
|
|
|
|
|
|
|
|
depend_dist:: $(DIST_DIRS)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
clobber_dist::
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
@$(W95MAKE) clobber $(MAKEDIR) $(DIST_DIRS)
|
|
|
|
!else
|
|
|
|
@set MAKE_ARGS=clobber
|
|
|
|
|
|
|
|
clobber_dist:: $(DIST_DIRS)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
clobber_all_dist::
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
@$(W95MAKE) clobber_all $(MAKEDIR) $(DIST_DIRS)
|
|
|
|
!else
|
|
|
|
@set MAKE_ARGS=clobber_all
|
|
|
|
|
|
|
|
clobber_all_dist:: $(DIST_DIRS)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
# Build rules for the "nglayout" portion. This builds the nglayout software
|
|
|
|
# including the sample webshell viewer application.
|
|
|
|
|
|
|
|
all_nglayout:
|
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)
|
|
|
|
$(NMAKE) -f $(THIS_MAKEFILE) export_nglayout
|
|
|
|
$(NMAKE) -f $(THIS_MAKEFILE) libs_nglayout
|
|
|
|
$(NMAKE) -f $(THIS_MAKEFILE) install_nglayout
|
|
|
|
|
|
|
|
export_nglayout::
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
@$(W95MAKE) export $(MAKEDIR) $(RAPTOR_DIRS)
|
|
|
|
!else
|
|
|
|
@set MAKE_ARGS=export
|
|
|
|
|
|
|
|
export_nglayout:: $(RAPTOR_DIRS)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
libs_nglayout::
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
@$(W95MAKE) libs $(MAKEDIR) $(RAPTOR_DIRS)
|
|
|
|
!else
|
|
|
|
@set MAKE_ARGS=libs
|
|
|
|
|
|
|
|
libs_nglayout:: $(RAPTOR_DIRS)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
install_nglayout::
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
@$(W95MAKE) install $(MAKEDIR) $(RAPTOR_DIRS)
|
|
|
|
!else
|
|
|
|
@set MAKE_ARGS=install
|
|
|
|
|
|
|
|
install_nglayout:: $(RAPTOR_DIRS)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
depend_nglayout::
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
@$(W95MAKE) depend $(MAKEDIR) $(RAPTOR_DIRS)
|
|
|
|
!else
|
|
|
|
@set MAKE_ARGS=depend
|
|
|
|
|
|
|
|
depend_nglayout:: $(RAPTOR_DIRS)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
clobber_nglayout::
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
@$(W95MAKE) clobber $(MAKEDIR) $(RAPTOR_DIRS)
|
|
|
|
!else
|
|
|
|
@set MAKE_ARGS=clobber
|
|
|
|
|
|
|
|
clobber_nglayout:: $(RAPTOR_DIRS)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
clobber_all_nglayout::
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
@$(W95MAKE) clobber_all $(MAKEDIR) $(RAPTOR_DIRS)
|
|
|
|
!else
|
|
|
|
@set MAKE_ARGS=clobber_all
|
|
|
|
|
|
|
|
clobber_all_nglayout:: $(RAPTOR_DIRS)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
# Build nglayout Doc++ documentation
|
|
|
|
DOCXX = $(MOZ_TOOLS)\bin\docxx
|
|
|
|
DOCXX_RAPTOR = $(DOCXX) -H -A -p -f -B c:\fake_banner-file_name -j -a
|
|
|
|
DOCXX_DESTDIR = $(MOZ_SRC)\$(MOZ_TOP)\dist\documentation
|
|
|
|
|
|
|
|
doc_nglayout:
|
|
|
|
-rm -rf $(DOCXX_DESTDIR)
|
|
|
|
-@mkdir $(DOCXX_DESTDIR)
|
|
|
|
@for %d in (nglayout xpcom img dom netlib) do \
|
|
|
|
$(DOCXX_RAPTOR) -d $(DOCXX_DESTDIR)\%d $(MOZ_SRC)\$(MOZ_TOP)\dist\public\%d\*.h
|
|
|
|
@echo Documentation written to $(DOCXX_DESTDIR)
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
# Build tarball
|
|
|
|
|
1999-02-19 01:49:35 +03:00
|
|
|
!if exist($(MOZ_TOOLS)\bin\unix_date.exe)
|
|
|
|
DATE_CMD=$(MOZ_TOOLS)\bin\unix_date.exe
|
|
|
|
!else
|
|
|
|
DATE_CMD=$(MOZ_TOOLS)\bin\date.exe
|
|
|
|
!endif
|
|
|
|
|
1998-05-09 00:18:35 +04:00
|
|
|
!if [$(DATE_CMD) +%Y%m%d > today.inc]
|
|
|
|
!endif
|
|
|
|
DATE=\
|
|
|
|
!include "today.inc"
|
|
|
|
DATE=$(DATE: =)^
|
|
|
|
|
|
|
|
!if [del today.inc]
|
|
|
|
!endif
|
|
|
|
|
|
|
|
TAR = tar
|
|
|
|
ZIP = $(MOZ_TOOLS)\bin\zip
|
|
|
|
GZIP = gzip
|
|
|
|
|
1998-10-21 06:02:00 +04:00
|
|
|
TARBALL = $(MOZ_SRC)\mozilla-newlayout-$(DATE)-win32.tar
|
|
|
|
TARBALL_ZIP = $(MOZ_SRC)\mozilla-newlayout-$(DATE)-win32.zip
|
1998-05-09 00:18:35 +04:00
|
|
|
|
1998-10-14 02:42:02 +04:00
|
|
|
TARFILES = mozilla
|
1998-05-09 00:18:35 +04:00
|
|
|
|
|
|
|
tarballs: tarball_zip tarball_gz
|
|
|
|
|
|
|
|
tarball_zip: prepare_for_tarballing
|
|
|
|
@echo Making $(TARBALL_ZIP)
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
rm -f $(TARBALL_ZIP)
|
|
|
|
$(ZIP) -9 -r -q $(TARBALL_ZIP) $(TARFILES)
|
|
|
|
|
|
|
|
tarball_gz: prepare_for_tarballing
|
|
|
|
@echo Making $(TARBALL)
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
rm -f $(TARBALL) $(TARBALL).gz
|
|
|
|
$(TAR) cf $(TARBALL) $(TARFILES)
|
|
|
|
@echo Making gzip of $(TARBALL)
|
|
|
|
$(GZIP) -9 -q $(TARBALL)
|
|
|
|
|
|
|
|
prepare_for_tarballing:
|
|
|
|
$(NMAKE) -f $(THIS_MAKEFILE) clobber clobber_all
|