#
-# Bacula Makefile
+# Bacula Makefile for the File daemon
#
# Version $Id$
#
@echo " "
win32/winlib.a:
- (cd win32; $(MAKE))
+ (cd win32; $(MAKE) DESTDIR=$(DESTDIR))
@rm -f bacula-fd.exe
win32/winmain.o:
- (cd win32; $(MAKE))
+ (cd win32; $(MAKE) DESTDIR=$(DESTDIR))
@rm -f bacula-fd.exe
win32/winres.res:
- (cd win32; $(MAKE))
+ (cd win32; $(MAKE) DESTDIR=$(DESTDIR))
@rm -f bacula-fd.exe
# win32 libraries if needed
win32: $(WIN32OBJS)
- (cd win32; $(MAKE))
+ (cd win32; $(MAKE) DESTDIR=$(DESTDIR))
@rm -f bacula-fd.exe
bacula-fd: $(SVROBJS) ../findlib/libfind.a ../lib/libbac.a @WIN32@
(cd win32; $(MAKE) distclean); \
fi
+devclean: realclean
+ if test $(srcdir) = .; then $(MAKE) realclean; fi
+ (cd $(srcdir); $(RMF) Makefile)
+ if test -f win32/Makefile; then \
+ (cd win32; $(MAKE) devclean); \
+ fi
+
install: all
$(INSTALL_PROGRAM) bacula-fd $(DESTDIR)$(sbindir)/bacula-fd
@srcconf=bacula-fd.conf; \
fi; \
echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
+ @if test -f static-bacula-fd; then \
+ $(INSTALL_PROGRAM) static-bacula-fd $(DESTDIR)$(sbindir)/static-bacula-fd; \
+ fi
+
+
uninstall:
(cd $(DESTDIR)$(sbindir); $(RMF) bacula-fd)