Makefile.in 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # This Source Code Form is subject to the terms of the Mozilla Public
  2. # License, v. 2.0. If a copy of the MPL was not distributed with this
  3. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4. include $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/package-name.mk
  5. CONFIG_DIR = instgen
  6. SFX_MODULE = $(topsrcdir)/other-licenses/7zstub/palemoon/7zSD.sfx
  7. INSTALLER_FILES = \
  8. app.tag \
  9. nsis/installer.nsi \
  10. nsis/uninstaller.nsi \
  11. nsis/shared.nsh \
  12. $(NULL)
  13. BRANDING_FILES = \
  14. branding.nsi \
  15. appname.bmp \
  16. wizHeader.bmp \
  17. wizHeaderRTL.bmp \
  18. wizWatermark.bmp \
  19. $(NULL)
  20. include $(topsrcdir)/config/config.mk
  21. ifdef LOCALE_MERGEDIR
  22. PPL_LOCALE_ARGS = \
  23. --l10n-dir=$(LOCALE_MERGEDIR)/palemoon/installer \
  24. --l10n-dir=$(call EXPAND_LOCALE_SRCDIR,palemoon/locales)/installer \
  25. --l10n-dir=$(topsrcdir)/palemoon/locales/en-US/installer \
  26. $(NULL)
  27. else
  28. PPL_LOCALE_ARGS=$(call EXPAND_LOCALE_SRCDIR,palemoon/locales)/installer
  29. endif
  30. OVERRIDE_DEFAULT_GOAL := installer
  31. installer::
  32. $(MAKE) -C .. installer-stage
  33. $(MAKE) $(CONFIG_DIR)/setup.exe
  34. # For building the uninstaller during the application build so it can be
  35. # included for mar file generation.
  36. uninstaller::
  37. $(RM) -r $(CONFIG_DIR)
  38. $(MKDIR) $(CONFIG_DIR)
  39. $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
  40. $(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR)
  41. $(call py_action,preprocessor,-Fsubstitution $(DEFINES) $(ACDEFINES) \
  42. $(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi)
  43. $(PYTHON) $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
  44. --preprocess-locale $(MOZILLA_SRCDIR) \
  45. $(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR)
  46. $(CONFIG_DIR)/setup.exe::
  47. $(RM) -r $(CONFIG_DIR)
  48. $(MKDIR) $(CONFIG_DIR)
  49. $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
  50. $(INSTALL) $(addprefix $(DIST)/branding/,$(BRANDING_FILES)) $(CONFIG_DIR)
  51. $(call py_action,preprocessor,-Fsubstitution $(DEFINES) $(ACDEFINES) \
  52. $(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi)
  53. $(PYTHON) $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
  54. --preprocess-locale $(MOZILLA_SRCDIR) \
  55. $(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR)
  56. GARBARGE_DIRS += instgen
  57. include $(topsrcdir)/config/rules.mk
  58. include $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/windows/nsis/makensis.mk