home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD1.bin / gnu / amigalib.mk < prev    next >
Makefile  |  1995-04-15  |  2KB  |  58 lines

  1. # Amiga Library Services - CD Administration Makefile
  2. #
  3. # This Makefile goes in the root directory of the GNU tree.
  4.  
  5. SHELL =        /bin/sh
  6. MAKE =        make
  7. MAKEFILE =    AmigaLib.mk
  8.  
  9. # The "base name" of this CD set.  Supply a default value here that is
  10. # typically overridden by an upper level make, or else passed as a command
  11. # line arg.
  12.  
  13. CDNAME =    FreshFish-Vol9
  14.  
  15. # This is the root directory for the BBS tree.  Typically it is assigned
  16. # a value like "FreshFish-Vol8-2:BBS" via a command line arg to Make, or
  17. # else is passed in by an upper level make.
  18.  
  19. BBSROOT =    $(CDNAME)-2:BBS
  20.  
  21. SCRATCHDIR =    /tmp
  22.  
  23. FLAGS_TO_PASS = \
  24.         "MAKE=$(MAKE)" \
  25.         "MAKEFILE=$(MAKEFILE)" \
  26.         "CDNAME=$(CDNAME)" \
  27.         "BBSROOT=$(BBSROOT)" \
  28.         "SCRATCHDIR=$(SCRATCHDIR)"
  29.  
  30. all:
  31.  
  32. release:
  33.  
  34. # Build archives in the BBS section of the CD using various parts of this tree.
  35. # There are two sources of material to consider, ready made archives with their
  36. # associated product info files, and files that are scattered throughout the GNU
  37. # tree (like this one) and need to be gathered into archives.  In the first case,
  38. # the manifest files "*-bbs" list all the files that simply need to be copied to
  39. # the BBS tree.  For the second caes, we run a script that takes care of the
  40. # dirty work of creating the necessary archives from files listed in the other
  41. # manifest files.
  42. #
  43. # In general, there are three archives per program, one for the source, one for
  44. # the binaries, and one for the diffs of the amiga source against the baseline
  45. # source.  The packing script requires the name of the BBS directory as a command
  46. # line argument.  A default value is provided in BBSROOT, but this can be (and
  47. # normally is) overridden by the upper level makefile that calls this one.
  48.  
  49. BBS:
  50.         $(SHELL) PackGNU.sh $(BBSROOT) $(SCRATCHDIR)
  51.  
  52. # Clean up this directory.
  53.  
  54. clean:
  55.         rm -f *!
  56.  
  57. clobber:    clean
  58.