Initial version of compat version
[grml2usb.git] / debian / rules
index 25422bc..1be33dd 100755 (executable)
@@ -16,6 +16,7 @@ build-stamp:
 
        # Add here commands to compile the package.
        $(MAKE)
+       cd mbr && $(MAKE) && cd ..
        touch build-stamp
 
 clean:
@@ -25,20 +26,22 @@ clean:
 
        # Add here commands to clean up after the build process.
        $(MAKE) clean
+       cd mbr && $(MAKE) clean && cd ..
        dh_clean
 
 install: build
        dh_testdir
        dh_testroot
        dh_clean -k
-       dh_installdirs usr/share/grml2usb/lilo usr/share/grml2usb/grub
+       dh_installdirs usr/share/grml2usb-compat/lilo usr/share/grml2usb-compat/grub usr/share/grml2usb-compat/mbr
 
-       # Add here commands to install the package into debian/grml2usb.
-       install -m 755 grml2usb.py            debian/grml2usb/usr/sbin/grml2usb
-       install -m 755 lilo/lilo.static.i386  debian/grml2usb//usr/share/grml2usb/lilo/lilo.static.i386
-       install -m 755 lilo/lilo.static.amd64 debian/grml2usb//usr/share/grml2usb/lilo/lilo.static.amd64
-       install -m 644 grub/splash.xpm.gz     debian/grml2usb/usr/share/grml2usb/grub/splash.xpm.gz
-       install -m 644 grub/stage2_eltorito   debian/grml2usb/usr/share/grml2usb/grub/stage2_eltorito
+       # Add here commands to install the package into debian/grml2usb-compat.
+       install -m 755 grml2usb-compat debian/grml2usb-compat/usr/sbin/grml2usb-compat
+       install -m 755 grml2iso-compat debian/grml2usb-compat/usr/sbin/grml2iso-compat
+       install -m 644 mbr/mbrmgr      debian/grml2usb-compat/usr/share/grml2usb-compat/mbr/mbrmgr
+       install -m 644 mbr/mbrldr      debian/grml2usb-compat/usr/share/grml2usb-compat/mbr/mbrldr
+       cp -a          lilo/           debian/grml2usb-compat/usr/share/grml2usb-compat/
+       cp -a          grub/           debian/grml2usb-compat/usr/share/grml2usb-compat/
 
 # Build architecture-dependent files here.
 binary-arch: build install
@@ -49,13 +52,13 @@ binary-indep: build install
        dh_testdir
        dh_testroot
        dh_installchangelogs
-       dh_installdocs
-       dh_installman grml2usb.8
+       dh_installdocs TODO
+       dh_installman grml2usb-compat.8 grml2iso-compat.8
        dh_link
        dh_strip
        dh_compress
-       mkdir -p debian/grml2usb/usr/share/lintian/overrides/
-       cp -av debian/overrides debian/grml2usb/usr/share/lintian/overrides/grml2usb
+       mkdir -p debian/grml2usb-compat/usr/share/lintian/overrides/
+       cp -av debian/overrides debian/grml2usb-compat/usr/share/lintian/overrides/grml2usb-compat
        dh_fixperms
        dh_installdeb
        dh_shlibdeps