Debian Codegraph @

debian/patches/003_dont-regenerate-version

raw
1 Description: Don't regenerate latex/version.tex
2 That depends on the bacula source being available at a specific
3 location. We just use the file that's shipped in the upstream tarball
4 and take care not to have it deleted by make distclean.
5 Author: Carsten Leonhardt <[email protected]>
6 Last-Update: 2024-11-19
7 Forwarded: not-needed
8
9 --- a/Makefile
10 +++ b/Makefile
11 @@ -60,19 +60,6 @@ else
12 endif
13 #
14 # For version.tex building process
15 -## bacula source directory
16 -ifeq ($(BACULASRC),)
17 - BACULASRC=$(HOME)
18 -endif
19 -# Location of the version.h file
20 -VERSION_H=$(shell find $(BACULASRC) -name "version.h" -print)
21 -ifeq ($(VERSION_H),)
22 - $(error Unable to find version.h in Bacula source tree $(BACULASRC).)
23 -else
24 - $(info $(VERSION_H) file found into $(dir $(VERSION_H)))
25 -endif
26 -## Bacula source directory (in the version.h point of view)
27 -SOURCES_DIR=$(dir $(VERSION_H))
28 ## Location and name for the version.tex file
29 VERSION_TEX=$(LATEX_DIR)/version.tex
30 #
31 @@ -320,7 +307,7 @@ distclean: $(LATEX2HTMLMAKEFILE) clean
32 $(AT)(if [ -x bacula-web ] ; then cd bacula-web; make clean; fi)
33 $(AT)for I in ${all_dirs}; \
34 do (if [ -x $$I ]; then ${MAKE} -C $$I $@ || exit 1; fi); done
35 - $(AT)rm -f ${VERSION_TEX}
36 + # $(AT)rm -f ${VERSION_TEX}
37 $(AT)rm -f ${externalreferencesfile}
38
39