Browse Source

* include installer building in zipinstall make target when building for relevant OS targets

(cherry picked from commit d70bb6a8c2c7465949bc8e6ce328789572b93987)
Tomas Hajny 3 years ago
parent
commit
e31036b5d6
2 changed files with 21 additions and 0 deletions
  1. 10 0
      Makefile
  2. 11 0
      Makefile.fpc

+ 10 - 0
Makefile

@@ -476,6 +476,10 @@ UTILS=1
 endif
 endif
 endif
+INSTALLERTARGETS=emx go32v2 msdos os2
+ifneq ($(findstring $(OS_TARGET),$(INSTALLERTARGETS)),)
+INSTALLER=1
+endif
 ifeq ($(FULL_TARGET),i386-linux)
 override TARGET_DIRS+=compiler rtl utils packages installer
 endif
@@ -2837,11 +2841,17 @@ endif
 	$(MAKE) packages_clean $(CLEANOPTS)
 ifdef UTILS
 	$(MAKE) utils_clean $(CLEANOPTS)
+endif
+ifdef INSTALLER
+	$(MAKE) installer_clean $(CLEANOPTS)
 endif
 	$(MAKE) rtl_$(ALLTARGET) $(BUILDOPTS)
 	$(MAKE) packages_$(ALLTARGET) $(BUILDOPTS)
 ifdef UTILS
 	$(MAKE) utils_all $(BUILDOPTS)
+endif
+ifdef INSTALLER
+	$(MAKE) installer_all $(BUILDOPTS)
 endif
 	$(ECHOREDIR) Build > $(BUILDSTAMP)
 	$(ECHOREDIR) Build > base.$(BUILDSTAMP)

+ 11 - 0
Makefile.fpc

@@ -207,6 +207,11 @@ endif
 endif
 endif
 
+INSTALLERTARGETS=emx go32v2 msdos os2
+ifneq ($(findstring $(OS_TARGET),$(INSTALLERTARGETS)),)
+INSTALLER=1
+endif
+
 [rules]
 .NOTPARALLEL:
 
@@ -301,11 +306,17 @@ endif
 ifdef UTILS
         $(MAKE) utils_clean $(CLEANOPTS)
 endif
+ifdef INSTALLER
+        $(MAKE) installer_clean $(CLEANOPTS)
+endif
 # build everything
         $(MAKE) rtl_$(ALLTARGET) $(BUILDOPTS)
         $(MAKE) packages_$(ALLTARGET) $(BUILDOPTS)
 ifdef UTILS
         $(MAKE) utils_all $(BUILDOPTS)
+endif
+ifdef INSTALLER
+        $(MAKE) installer_all $(BUILDOPTS)
 endif
         $(ECHOREDIR) Build > $(BUILDSTAMP)
         $(ECHOREDIR) Build > base.$(BUILDSTAMP)