Debian Codegraph @

debian/patches/001_Allow-one-to-toggle-the-build-to-verbose-mode

raw symbols SCIP
1 Description: Allow one to toggle the build to verbose mode
2 Setting the environment variable BUILD_VERBOSE to 1 makes the build verbose.
3 Author: Carsten Leonhardt <[email protected]>
4 Forwarded: https://sourceforge.net/p/bacula/mailman/message/58847316/
5 Last-Update: 2024-11-30
6
7 --- a/Makefile
8 +++ b/Makefile
9 @@ -2,7 +2,12 @@
10 #-------------------------------------------------------------------------
11 SHELL = /bin/sh
12
13 -AT=@
14 +# if BUILD_VERBOSE is set to 1, output everything to the console
15 +ifeq ($(BUILD_VERBOSE),1)
16 + AT=
17 +else
18 + AT=@
19 +endif
20
21 #
22 # bacula.env file is a local file to define specific values if any
23 --- a/manuals/Makefile
24 +++ b/manuals/Makefile
25 @@ -10,7 +10,13 @@ else
26 $(error No environment file "$(MANUALENVFILE)" found. You can copy "$(MANUALENVFILE).dist" to "$(MANUALENVFILE)" and adjust some definitions.)
27 endif
28
29 -AT=@
30 +# if BUILD_VERBOSE is set to 1, output everything to the console
31 +ifeq ($(BUILD_VERBOSE),1)
32 + AT=
33 +else
34 + AT=@
35 +endif
36 +
37 #
38 # WARNING !!! The following works *ONLY* when using MAKE with $(MAKE) -C subdir invocation.
39 LICENCE_FILES=$(wildcard $(LICENCE_DIR)/*.tex)
40 @@ -24,8 +30,14 @@ WEB_FILES_TO_LINK=$(TRANSLATEIMGS) $(LAT
41 PDFLATEX=$(COMPILER)
42 PDFLATEXSILENT=batchmode
43 PDFLATEXVERBOSE=errorstopmode
44 -PDFLATEXOPTIONS=-halt-on-error -interaction=$(PDFLATEXSILENT) # $(PDFLATEXVERBOSE) #
45 -PDFOUTPUT="> $(DOC).out 2>&1"
46 +ifeq ($(BUILD_VERBOSE),1)
47 + PDFLATEXOPTIONS=-halt-on-error -interaction=$(PDFLATEXVERBOSE)
48 + PDFOUTPUT=""
49 +else
50 + PDFLATEXOPTIONS=-halt-on-error -interaction=$(PDFLATEXSILENT)
51 + PDFOUTPUT="> $(DOC).out 2>&1"
52 +endif
53 +
54 #
55 # Makefile used to produce HTML documentation
56 EXTSEDFILES=html-external-references.sed