]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
build: Update and fix build procedure.
authorRadosław Korzeniewski <radoslaw@korzeniewski.net>
Fri, 19 Feb 2021 14:24:50 +0000 (15:24 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:00 +0000 (09:03 +0100)
bacula/Makefile.in
bacula/manpages/Makefile.in
bacula/src/stored/Makefile.in

index 45eb9fc54b959aa39f2b097808dd697784c3d945..962a3d2770be6435b1d5e356aebdc2af9dd1686a 100755 (executable)
@@ -55,10 +55,11 @@ all: Makefile
 
 depend:
        @for I in ${all_subdirs}; \
-          do (cd $$I; echo "==>Entering directory `pwd`"; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
+          do echo "==> Entering directory $$I" ; \
+             $(MAKE) DESTDIR=$(DESTDIR) -C $$I $@ ; done
        @for I in ${pluginsdirs}; \
-          do echo "==>Entering directory ${I}"
-             $(MAKE) DESTDIR=$(DESTDIR) -C ${I} $@ ; done
+          do echo "==> Plugin directory $$I" ; \
+             $(MAKE) DESTDIR=$(DESTDIR) -C $$I $@ ; done
 
 bacula-fd: Makefile
        @for I in ${fd_subdirs}; \
@@ -70,7 +71,7 @@ bacula-fd: Makefile
 
 plugins:
        @for I in ${pluginsdirs}; \
-          do echo "==> Plugin directory" $$I; \
+          do echo "==> Plugin directory" $$I ; \
              $(MAKE) DESTDIR=$(DESTDIR) -C $$I all ; done
 
 #-------------------------------------------------------------------------
@@ -166,7 +167,7 @@ uninstall-autostart-sd:
 
 install-plugins:
        @for I in ${pluginsdirs}; \
-          do echo "==> Plugin directory $$I"; \
+          do echo "==> Plugin directory $$I" ; \
              $(MAKE) DESTDIR=$(DESTDIR) -C $$I install ; done
 
 Makefile: Makefile.in
index dab1f1807ddf5b16209716090f7aa7c6779e60d8..8d8a484651f876cc692fe02d30ffb0d055ce5cce 100644 (file)
@@ -11,7 +11,7 @@ MAN8 = bacula.8 bacula-dir.8 bacula-fd.8 bacula-sd.8 \
        btraceback.8 dbcheck.8 bwild.8 bregex.8
 
 MAN1 = bsmtp.1 bat.1
-      
+
 all:
 
 nothing:
@@ -44,7 +44,7 @@ clean:
        @$(RMF) *~ 1 2 3 *.bak
        @find . -name .#* -exec $(RMF) {} \;
 
-depend:      
+depend:
 
 distclean: clean
        $(RMF) Makefile
index 11d13bb07ee784c34978f1e4229649a7705027c9..91a423dc9e6a66b8c34f7b2b2e2b25e54751b409 100644 (file)
@@ -352,7 +352,7 @@ acsls-changer.o: acsls-changer.c
 # libdir points to /opt/bacula/lib, but libtools decides to store libraries to
 # /opt/bacula/lib64 on some platforms. We can add the two directories in rpath
 # to workaround the problem.
-acsls-changer: Makefile $(ACSLSCHGOBJS) 
+acsls-changer: Makefile $(ACSLSCHGOBJS)
        $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib/.libs $(ACSLSCHGOBJS) -L../lib -lbac $(LIBS) $(GETTEXT_LIBS) -Wl,-rpath $(libdir) -o $@
 
 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
@@ -452,7 +452,7 @@ install-swift-cloud: bacula-sd-cloud-swift-driver.la
        $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bacula-sd-cloud-swift-driver$(DEFAULT_SHARED_OBJECT_TYPE) $(DESTDIR)$(plugindir)
        $(RMF) $(DESTDIR)$(plugindir)/bacula-sd-cloud-swift-driver.la
 
-install-aligned:  bacula-sd-aligned-driver.la 
+install-aligned:  bacula-sd-aligned-driver.la
        $(MKDIR) $(DESTDIR)$(plugindir)
        $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bacula-sd-aligned-driver$(DEFAULT_SHARED_OBJECT_TYPE) $(DESTDIR)$(plugindir)
        $(RMF) $(DESTDIR)$(plugindir)/bacula-sd-aligned-driver.la
@@ -509,7 +509,9 @@ depend:
        @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
        @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
        @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(S3_INC) -I$(srcdir) -I$(basedir) -I$(ACSLS_LIBDIR)/src/h *.c >> Makefile
-       @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(S3_INC) -I$(srcdir) -I$(basedir) -std=c++11 *.cpp >> Makefile || true
+       @set -- *.cpp ; if test -f "$1" ; then \
+          $(CXX) -S -M $(CPPFLAGS) $(XINC) $(S3_INC) -I$(srcdir) -I$(basedir) -std=c++11 *.cpp >> Makefile ; \
+       fi
        @if test -f Makefile ; then \
            $(RMF) Makefile.bak; \
        else \