"Fossies" - the Fresh Open Source Software Archive

Member "backup2l-1.5/debian/rules" (25 Aug 2003, 1483 Bytes) of package /linux/privat/backup2l_1.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/make -f
    2 
    3 # Base on the sample debian/rules file for GNU Hello (1.3)
    4 
    5 package=backup2l
    6 
    7 build:
    8 
    9 clean:
   10     $(checkdir)
   11     rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars
   12 
   13 binary-indep:   checkroot build
   14     $(checkdir)
   15 # There are no architecture-independent files to be uploaded
   16 # generated by this package.  If there were any they would be
   17 # made here.
   18 
   19 binary-arch:    checkroot build
   20     $(checkdir)
   21     rm -rf debian/tmp
   22     install -d debian/tmp/DEBIAN\
   23         -d debian/tmp/usr/share/doc/$(package)\
   24         -d debian/tmp/usr/share/man/man8\
   25         -d debian/tmp/usr/sbin\
   26         -d debian/tmp/etc/cron.daily
   27     install -m 755 debian/prerm debian/tmp/DEBIAN
   28     install -m 644 debian/conffiles debian/tmp/DEBIAN
   29     ./install-sh -fc debian/tmp/usr/share debian/tmp/usr/sbin debian/tmp/etc
   30     cp -a debian/copyright debian/tmp/usr/share/doc/$(package)/
   31     cp -a debian/changelog debian/tmp/usr/share/doc/$(package)/changelog
   32     cp -a README debian/tmp/usr/share/doc/$(package)/
   33     cp -a first-time.conf debian/tmp/usr/share/doc/$(package)/
   34     cd debian/tmp/usr/share/doc/$(package) && gzip -9 changelog
   35     cd debian/tmp/usr/share/doc/$(package) && gzip -9 README
   36     dpkg-gencontrol -isp
   37     chown -R root.root debian/tmp
   38     chmod -R g-ws debian/tmp
   39     dpkg --build debian/tmp ..
   40 
   41 define checkdir
   42     test -f install-sh -a -f debian/rules
   43 endef
   44 
   45 # Below here is fairly generic really
   46 
   47 binary:  binary-indep binary-arch
   48 
   49 checkroot:
   50     $(checkdir)
   51     test $$(id -u) = 0
   52 
   53 .PHONY: binary binary-arch binary-indep clean checkroot build