]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
win32: Makefile add winfiled target + NOTPARALLEL
authorAlain Spineux <alain@baculasystems.com>
Mon, 26 Mar 2018 10:09:16 +0000 (12:09 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:04 +0000 (09:03 +0100)
- the .NOTPARALLEL option just disable the "-j" option effect at the
  level of the Makefile to keep it sequential. The "-j" will be passed
  to sub-level Makefile
- the new target allow to quickly RE-build the client when all files
  have been already compiled once.
- A quick way to build the client :
  use "make win64=yes bat=no winfiled -j 4" to quickly build the client
- this is not 100% reliable, but very convenient for faster development
  of the client.
- run the command twice to be sure.
- for the build of the package does as usual, don't use "-j"

bacula/src/win32/Makefile

index f07969b8d92f02fe610e587f4130253956f97593..f8cc7549a5556e68b0bf8e782c931e30929686fe 100644 (file)
@@ -14,6 +14,9 @@
 #     built.
 #
 
+# ignore "make -j N" option at this level
+.NOTPARALLEL:
+
 ECHO_CMD=@
 
 WIN32_DIRS=lib filed filed/plugins console scripts stored
@@ -67,6 +70,14 @@ release64/bat.exe: is_depkgs_set
 
 bat64: release64/bat.exe
 
+# a target that quickly build windows bacula-fd.exe
+winfiled:
+       @for I in lib filed filed/plugins console; \
+         do (cd $$I; echo "==>Entering directory `pwd`"; \
+             $(MAKE) DESTDIR=$(DESTDIR)  || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
+                           echo ""; echo ""; false ) || false) || exit 1; \
+       done
+
 full_win32_installer:
        @if test -f Makefile.inc; then \
           if $(MAKE) -C $@ $(MAKECMDGOALS); then \