.SUFFIXES: .c .o .lo
-.PHONY:
+.PHONY: dedup1/libdedup1.la dedup2/libdedup2.la
.DONTCARE:
# inference rules
swift-driver: bacula-sd-cloud-swift-driver.la
-dedup2: Makefile
- (cd dedup2 && make DESTDIR=$(DESTDIR) || exit 1)
-
bacula-sd-cloud-driver.la: Makefile $(CLOUD_ALL_LOBJS)
$(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(CLOUD_ALL_LOBJS) -o $@ -R $(libdir) -rpath $(libdir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE)
$(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(CLOUD_GENERIC_LOBJS) -o $@ -R $(libdir) -rpath $(libdir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE)
dedup1/libdedup1.la:
- (cd dedup1 && make libdedup1.la || exit 1)
+ cd dedup1 && make libdedup1.la
+
+dedup2/libdedup2.la:
+ cd dedup2 && make libdedup2.la
-bacula-sd-dedup-driver.la: Makefile $(DEDUP_LOBJS) dedup1/libdedup1.la
+bacula-sd-dedup-driver.la: Makefile $(DEDUP_LOBJS) dedup1/libdedup1.la dedup2/libdedup2.la
@echo "Making $@ ..."
- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(DEDUP_LOBJS) dedup1/libdedup1.la -o $@ -rpath $(plugindir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE) \
+ $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared $(DEDUP_LOBJS) dedup1/libdedup1.la dedup2/libdedup2.la -o $@ -rpath $(plugindir) -module -export-dynamic -release $(LIBBACSD_LT_RELEASE) \
$(TOKYOCABINET_LIBS)
bacula-sd-aligned-driver.la: Makefile $(ALIGNED_LOBJS)
@find . -name '*.lo' -print | xargs $(LIBTOOL_CLEAN) $(RMF)
@$(RMF) -r .libs _libs
@$(RMF) *.la
- (cd dedup1 && make libtool-clean)
+ #(cd dedup1 && make libtool-clean)
+ #(cd dedup2 && make libtool-clean)
clean: libtool-clean
@$(RMF) bacula-sd stored bls bextract bpool btape shmfree core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
@$(RMF) bscan bsdjson bcopy static-bacula-sd acsls-changer
- (cd dedup1 && make clean)
+ #(cd dedup1 && make clean)
+ #(cd dedup2 && make clean)
realclean: clean
@$(RMF) tags bacula-sd.conf acsls-changer.conf
distclean: realclean
if test $(srcdir) = .; then $(MAKE) realclean; fi
(cd $(srcdir); $(RMF) Makefile)
- (cd dedup1 && make distclean)
+ #(cd dedup1 && make distclean)
+ #(cd dedup2 && make distclean)
devclean: realclean
if test $(srcdir) = .; then $(MAKE) realclean; fi
$(MV) Makefile.bak Makefile; \
echo " ======= Something went wrong with make depend. ======="; \
fi
- (cd dedup1 && make depend)
+ #(cd dedup1 && make depend)
+ #(cd dedup2 && make depend)
# -----------------------------------------------------------------------
# DO NOT DELETE: nice dependency list follows
#ifdef SD_DEDUP_SUPPORT
DEDUPRES *dedup;
foreach_res(dedup, R_DEDUP) {
- if (dedup->driver_type == D_LEGACY_DRIVER)
- {
+ if (dedup->driver_type == D_LEGACY_DRIVER) {
+ if (dedup->dedup_dir == NULL) {
+ Jmsg(NULL, M_FATAL, 0,
+ _("Failed to initialize Dedup Legasy. DedupDirectory not defined for Dedup \"%s\"\n"),
+ dedup->hdr.name);
+ OK = false;
+ }
+ } else if (dedup->driver_type == D_DEDUP2_DRIVER) {
if (dedup->dedup_dir == NULL) {
Jmsg(NULL, M_FATAL, 0,
- _("Failed to initialize Dedup. DedupDirectory not defined for Dedup \"%s\"\n"),
+ _("Failed to initialize Dedup2 . DedupDirectory not defined for Dedup \"%s\"\n"),
dedup->hdr.name);
OK = false;
}
#ifdef SD_DEDUP_SUPPORT
DEDUPRES *dedup;
foreach_res(dedup, R_DEDUP) {
- if (dedup->driver_type == D_LEGACY_DRIVER)
- {
+ if (dedup->driver_type == D_LEGACY_DRIVER) {
+ if (dedup->dedup_dir == NULL) {
+ Jmsg(NULL, M_FATAL, 0,
+ _("Failed to initialize Dedup Legacy. DedupDirectory not defined for Dedup \"%s\"\n"),
+ dedup->hdr.name);
+ OK = false;
+ }
+ } else if (dedup->driver_type == D_DEDUP2_DRIVER) {
if (dedup->dedup_dir == NULL) {
Jmsg(NULL, M_FATAL, 0,
- _("Failed to initialize Dedup. DedupDirectory not defined for Dedup \"%s\"\n"),
+ _("Failed to initialize Dedup 2. DedupDirectory not defined for Dedup \"%s\"\n"),
dedup->hdr.name);
OK = false;
}