summaryrefslogtreecommitdiff
path: root/calendar/installer/Makefile.in
blob: b51ccb7cd13c4fa1233afaa37bddf27d05307ca8 (plain)
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
# 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/.

DEPTH       = @DEPTH@
topsrcdir   = @top_srcdir@
srcdir      = @srcdir@
VPATH       = @srcdir@

include $(DEPTH)/config/autoconf.mk

STANDALONE_MAKEFILE := 1

NO_PKG_FILES = \
    sunbird-config \
    regchrome* \
    regxpcom* \
    xpcshell* \
    xpidl* \
    xpt_dump* \
    xpt_link* \
    nspr-config \
    $(NULL)

include $(topsrcdir)/config/rules.mk

MOZ_PKG_REMOVALS = $(srcdir)/removed-files.in

ifdef BUILD_STATIC_LIBS
ifeq (WINNT,$(OS_ARCH))
MOZ_PKG_MANIFEST_P = $(srcdir)/windows/packages-static
# XXX Enable when landing unix installer
# else
# ifneq (,$(filter-out OS2,$(OS_ARCH)))
# MOZ_PKG_MANIFEST_P = $(srcdir)/unix/packages-static
# endif
endif
else
$(error you need a "--enable-static --disable-shared" build to create an installer)
endif

MOZ_NONLOCALIZED_PKG_LIST = \
    xpcom \
    calendar \
    $(NULL)

MOZ_LOCALIZED_PKG_LIST = $(AB_CD)

DEFINES += -DAB_CD=$(AB_CD)

ifdef MOZ_UPDATER
DEFINES += -DMOZ_UPDATER=1
endif

ifdef MOZ_PKG_MANIFEST_P
MOZ_PKG_MANIFEST = packages-static

$(MOZ_PKG_MANIFEST): $(MOZ_PKG_MANIFEST_P) $(GLOBAL_DEPS)
	$(PYTHON) $(MOZILLA_SRCDIR)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $< > $@
endif

include $(MOZILLA_SRCDIR)/system/installer/packager.mk

ifeq (WINNT,$(OS_ARCH))
PKGCOMP_FIND_OPTS = 
else
PKGCOMP_FIND_OPTS = -L
endif

package-compare::
ifdef MOZ_PKG_MANIFEST_P
	cd $(DIST); find $(PKGCOMP_FIND_OPTS) bin -type f | sort > bin-list.txt
	grep "^bin" $(MOZ_PKG_MANIFEST) | sed -e 's/\\/\//g' | sort > $(DIST)/pack-list.txt
	-diff -u $(DIST)/pack-list.txt $(DIST)/bin-list.txt
endif

installer:
ifdef INSTALLER_DIR
	$(MAKE) -C $(INSTALLER_DIR)
endif

make-package : removed-files-checked

removed-files-checked : removed-files stage-package
	$(PERL) $(srcdir)/check-remove-files.pl removed-files $(DIST)/$(STAGEPATH)$(MOZ_PKG_DIR)$(_BINPATH)