home *** CD-ROM | disk | FTP | other *** search
/ Boot Disc 15 / boot-disc-1997-11.iso / Debian / Tools / LODLIN16.ZIP / LODLIN16 / DEBIAN / RULES < prev    next >
Text File  |  1997-01-20  |  2KB  |  72 lines

  1. #!/usr/bin/make -f
  2. # Sample debian.rules file - for GNU Hello (1.3).
  3. # Copyright 1994,1995 by Ian Jackson.
  4. # I hereby give you perpetual unlimited permission to copy,
  5. # modify and relicense this file, provided that you do not remove
  6. # my name from the file itself.  (I assert my moral right of
  7. # paternity under the Copyright, Designs and Patents Act 1988.)
  8. # This file may have to be extensively modified
  9.  
  10. # There used to be `source' and `diff' targets in this file, and many
  11. # packages also had `changes' and `dist' targets.  These functions
  12. # have been taken over by dpkg-source, dpkg-genchanges and
  13. # dpkg-buildpackage in a package-independent way, and so these targets
  14. # are obsolete.
  15.  
  16. package=loadlin
  17.  
  18. build:
  19.     $(checkdir)
  20.     cd initrd;make freeramdisk
  21.     touch build
  22.  
  23. clean:
  24.     $(checkdir)
  25.     -rm -f build
  26.     -cd initrd;make clean
  27.     -rm `find . -name "*~"`
  28.     -rm -rf debian/tmp debian/files* bible
  29.  
  30. binary-indep:    checkroot build
  31.     $(checkdir)
  32. # There are no architecture-independent files to be uploaded
  33. # generated by this package.  If there were any they would be
  34. # made here.
  35.  
  36. binary-arch:    checkroot build
  37.     $(checkdir)
  38.     -rm -rf debian/tmp
  39.     install -d debian/tmp debian/tmp/DEBIAN
  40.     install -d debian/tmp/usr/doc/$(package)/examples
  41.     install -d debian/tmp/usr/sbin debian/tmp/usr/lib/loadlin
  42.     install initrd/freeramdisk debian/tmp/usr/sbin
  43.     cp loadlin.exe debian/tmp/usr/lib/loadlin
  44.     cp readme.1st debian/tmp/usr/doc/loadlin
  45.     cp initrd.tgz test.par linux.bat debian/tmp/usr/doc/loadlin/examples
  46.     cp doc/* debian/tmp/usr/doc/loadlin
  47.     cp debian/copyright debian/tmp/usr/doc/$(package)
  48.     cp debian/README.debian debian/tmp/usr/doc/$(package)/.
  49.     cp debian/changelog debian/tmp/usr/doc/$(package)/changelog.Debian
  50.     chmod a+r debian/tmp/usr/doc/$(package)/*
  51.     dpkg-gencontrol
  52.     chown -R root.root debian/tmp
  53.     chmod -R g-ws debian/tmp
  54.     dpkg --build debian/tmp ..
  55.  
  56. define checkdir
  57.     test -f loadlin.exe -a -f debian/rules
  58. endef
  59.  
  60. # Below here is fairly generic really
  61.  
  62. binary:        binary-indep binary-arch
  63.  
  64. source diff:
  65.     @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
  66.  
  67. checkroot:
  68.     $(checkdir)
  69.     test root = "`whoami`"
  70.  
  71. .PHONY: binary binary-arch binary-indep clean checkroot
  72.