]> git.sur5r.net Git - bacula/rescue/blobdiff - rescue/linux/cdrom/Makefile.in
Add new mkcdrec code
[bacula/rescue] / rescue / linux / cdrom / Makefile.in
index 721d9c972d41c2b79200ec2378954d16b5e97ec3..e242b24ef8811e097b904a4b567155cca04ccb09 100644 (file)
@@ -8,7 +8,7 @@
 MKCDREC=@BUILD_DIR@/mkcdrec
 CWD=@BUILD_DIR@/linux/cdrom
 
-first_rule: all
+first_rule: mkcdrec
 dummy:
 
 #-------------------------------------------------------------------------
@@ -54,7 +54,8 @@ bacula: dummy
 copy-bacula:
        cp -a bacula/ cdimage/
 
-pre-mkcdrec:
+pre-mkcdrec:               
+       ./mkcdrec_rd    
        @echo "Patching mkcdrec Config.sh for Bacula"
        @mkdir -p tmp
        @rm -f tmp/1 tmp/2 tmp/1
@@ -80,12 +81,13 @@ post-mkcdrec:
        cp /tmp/CDrec.iso bootcd.iso
        chmod 644 bootcd.iso
        rm -f /tmp/CDrec.iso
+       rm -f custom-rd.img.bz2
 
 
 # This will build the old Bacula rescue
 all:   kernel binaries bacula initrd iso
 
-mkcdrec: bacula pre-mkcdrec main-mkcdrec post-mkcdrec
+mkcdrec: kernel binaries bacula pre-mkcdrec main-mkcdrec post-mkcdrec
 
 copy-static-fd: kernel binaries static-bacula initrd iso
 
@@ -109,7 +111,7 @@ clean:
 #
 # Clean out files that are rebuilt
 #
-       @rm -f bootcd.iso   
+       @rm -f bootcd.iso custom-rd.img.bz2
        @rm -f 1 2 3 4
        @rm -rf mnt
        @rm -rf roottree/bin roottree/proc roottree/boot