# 
# bootstrap/linux Makefile.in
#

# autoconf/Make.common.in        -*- Makefile -*-
# release date (man), LSM date, version number/name, current maintainer
DATE="28 April 2010"
LSMDATE=@LSMDATE@
VERSION=5.0.2
VERNAME=bacula-$(VERSION)#
MAINT=Kern Sibbald#
MAINTEMAIL=<kern@sibbald.com>#
#-------------------------------------------------------------------------

SHELL = /bin/sh

# Installation target directories & other installation stuff
prefix = /usr
exec_prefix = /usr
binprefix =
manprefix =
datarootdir =
sbindir = /usr/sbin
sysconfdir = /etc/bacula/rescue
scriptdir = @scriptdir@
mandir = /usr/share/man/man1
manext = 1

# Tools & program stuff
MV = /bin/mv
RM = /bin/rm
RMF = /bin/rm -f
CP = /bin/cp
SED = @SED@
AWK = /usr/bin/gawk
ECHO = /bin/echo
CMP = @CMP@
INSTALL = /usr/bin/install -c
# add the -s to the following in PRODUCTION mode
INSTALL_PROGRAM = /usr/bin/install -c -m @SBINPERM@
INSTALL_DATA = /usr/bin/install -c -m 644
INSTALL_SCRIPT = /usr/bin/install -c -m @SBINPERM@
INSTALL_CONFIG = /usr/bin/install -c -m 640


# End of common section of the Makefile
#-------------------------------------------------------------------------

srcdir =	.
VPATH = 	.
.PATH:		.

# one up
basedir = ..

STATIC_FD=""

first_rule: all
dummy:

#-------------------------------------------------------------------------

all:
	./getdiskinfo
	./make_rescue_disk
	if test ! x${STATIC_FD} = x ; then \
	   ./copy_static_bacula $(DESTDIR)${STATIC_FD}/static-bacula-fd $(DESTDIR)${STATIC_FD}/bacula-fd.conf ; \
	elif test ! -f ../rpm_release ; then \
	   ./make_static_bacula /builddir/build/BUILD/bacula-5.0.3/bacula-rescue-5.0.2/.. ; \
	fi
	./copy_to_roottree

copy-static-fd:
	./getdiskinfo
	./make_rescue_disk
	./copy_static_bacula $(DESTDIR)$(sbindir)/static-bacula-fd $(DESTDIR)$(sysconfdir)/bacula-fd.conf
	./copy_to_roottree
    

depend:
	

#-------------------------------------------------------------------------


install:

uninstall:


clean:
	@$(RMF) *~ 1 2 3
	@$(RMF) format.* partition.* start_network mount_drives
	@$(RMF) sfdisk
	@$(RMF) -r diskinfo etc.gz

# clean for distribution
distclean: clean
	 


# ------------------------------------------------------------------------
