2012-04-02 17:06:06 +00:00
|
|
|
# -*- Makefile -*-
|
1998-08-19 20:42:14 +00:00
|
|
|
#
|
2012-05-21 11:12:37 +00:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
1998-08-19 20:42:14 +00:00
|
|
|
|
|
|
|
# IMPORTANT: Disable NSBUILDROOT for this directory only, otherwise we have
|
1999-09-10 09:22:43 +00:00
|
|
|
# a recursive rule for finding nsinstall and the Perl scripts.
|
1998-08-19 20:42:14 +00:00
|
|
|
ifdef NSBUILDROOT
|
|
|
|
override NSBUILDROOT :=
|
|
|
|
endif
|
|
|
|
|
2000-05-15 00:26:47 +00:00
|
|
|
include $(topsrcdir)/config/config.mk
|
2002-04-25 02:52:44 +00:00
|
|
|
|
2014-07-29 00:01:58 +00:00
|
|
|
# L10n jobs are doing make -C config manually before anything else,
|
|
|
|
# and need nsinstall to be built as a consequence.
|
2015-03-10 06:16:51 +00:00
|
|
|
ifdef COMPILE_ENVIRONMENT
|
2014-07-29 00:01:58 +00:00
|
|
|
export:: host
|
|
|
|
|
2012-08-29 06:55:57 +00:00
|
|
|
ifneq (WINNT,$(HOST_OS_ARCH))
|
|
|
|
# Ensure nsinstall is atomically created
|
|
|
|
nsinstall$(HOST_BIN_SUFFIX): $(HOST_PROGRAM)
|
|
|
|
cp $^ $@.tmp
|
|
|
|
mv $@.tmp $@
|
|
|
|
|
2014-01-13 22:38:40 +00:00
|
|
|
NSINSTALL_EXECUTABLES := nsinstall$(HOST_BIN_SUFFIX)
|
2012-08-29 06:55:57 +00:00
|
|
|
NSINSTALL_DEST := $(DIST)/bin
|
2014-07-24 22:14:40 +00:00
|
|
|
NSINSTALL_TARGET := host
|
2012-08-29 06:55:57 +00:00
|
|
|
INSTALL_TARGETS += NSINSTALL
|
|
|
|
endif
|
2013-11-07 01:37:45 +00:00
|
|
|
endif
|
2012-08-29 06:55:57 +00:00
|
|
|
|
1998-08-19 20:42:14 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2007-07-02 18:20:24 +00:00
|
|
|
GARBAGE += \
|
2014-11-07 01:16:42 +00:00
|
|
|
$(FINAL_LINK_COMPS) $(FINAL_LINK_LIBS) $(FINAL_LINK_COMP_NAMES) $(srcdir)/*.pyc *.pyc
|
2000-10-20 05:21:40 +00:00
|
|
|
|
1998-08-19 20:42:14 +00:00
|
|
|
FORCE:
|
|
|
|
|
2014-02-11 01:37:47 +00:00
|
|
|
ifndef JS_STANDALONE
|
2014-01-13 22:38:40 +00:00
|
|
|
check-preqs += check-jar-mn
|
|
|
|
endif
|
2008-06-13 14:41:43 +00:00
|
|
|
|
2012-04-03 20:08:16 +00:00
|
|
|
check:: $(check-preqs)
|
|
|
|
|
2008-06-13 14:41:43 +00:00
|
|
|
check-jar-mn::
|
2009-05-26 16:40:26 +00:00
|
|
|
$(MAKE) -C tests/src-simple check-jar
|
|
|
|
$(MAKE) -C tests/src-simple check-flat
|
|
|
|
$(MAKE) -C tests/src-simple check-flat USE_EXTENSION_MANIFEST=1
|
2014-02-10 22:57:01 +00:00
|
|
|
ifneq (,$(filter-out WINNT,$(OS_ARCH)))
|
2009-05-26 16:40:26 +00:00
|
|
|
$(MAKE) -C tests/src-simple check-symlink
|
2008-06-13 17:27:42 +00:00
|
|
|
endif
|