Package: bacula-doc / 15.0.3+debian1-1

001_Allow-one-to-toggle-the-build-to-verbose-mode Patch series | download
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
Description: Allow one to toggle the build to verbose mode
  Setting the environment variable BUILD_VERBOSE to 1 makes the build verbose.
Author: Carsten Leonhardt <leo@debian.org>
Forwarded: https://sourceforge.net/p/bacula/mailman/message/58847316/
Last-Update: 2024-11-30

--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,12 @@
 #-------------------------------------------------------------------------
 SHELL = /bin/sh
 
-AT=@
+# if BUILD_VERBOSE is set to 1, output everything to the console
+ifeq ($(BUILD_VERBOSE),1)
+	AT=
+else
+	AT=@
+endif
 
 #
 # bacula.env file is a local file to define specific values if any
--- a/manuals/Makefile
+++ b/manuals/Makefile
@@ -10,7 +10,13 @@ else
   $(error No environment file "$(MANUALENVFILE)" found. You can copy "$(MANUALENVFILE).dist" to "$(MANUALENVFILE)" and adjust some definitions.)
 endif
 
-AT=@
+# if BUILD_VERBOSE is set to 1, output everything to the console
+ifeq ($(BUILD_VERBOSE),1)
+	AT=
+else
+	AT=@
+endif
+
 #
 # WARNING !!! The following works *ONLY* when using MAKE with $(MAKE) -C subdir invocation.
 LICENCE_FILES=$(wildcard $(LICENCE_DIR)/*.tex)
@@ -24,8 +30,14 @@ WEB_FILES_TO_LINK=$(TRANSLATEIMGS) $(LAT
 PDFLATEX=$(COMPILER)
 PDFLATEXSILENT=batchmode
 PDFLATEXVERBOSE=errorstopmode
-PDFLATEXOPTIONS=-halt-on-error -interaction=$(PDFLATEXSILENT) # $(PDFLATEXVERBOSE) # 
-PDFOUTPUT="> $(DOC).out 2>&1"
+ifeq ($(BUILD_VERBOSE),1)
+	PDFLATEXOPTIONS=-halt-on-error -interaction=$(PDFLATEXVERBOSE)
+	PDFOUTPUT=""
+else
+	PDFLATEXOPTIONS=-halt-on-error -interaction=$(PDFLATEXSILENT)
+	PDFOUTPUT="> $(DOC).out 2>&1"
+endif
+
 #
 # Makefile used to produce HTML documentation
 EXTSEDFILES=html-external-references.sed