home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / support / makefile < prev    next >
Makefile  |  1994-04-06  |  2KB  |  60 lines

  1. # This Makefile helps build and manage the BBS support utilities
  2. # and other files.
  3.  
  4. CC = gcc
  5. CFLAGS =
  6.  
  7. SOURCEFILES =    symlinks.c
  8. DISTFILES =    $(SOURCEFILES) Makefile
  9.  
  10. all :        symlinks P-V.list Archives view1.lha
  11.  
  12. # This target builds "Archives", which is an accumulated summary of all
  13. # of the archives on this CD for which a product info file is supplied.
  14.  
  15. Archives :
  16.         pitool -b -f - >Archives /FrozenFish-Apr94
  17.  
  18. # This target builds "P-V.list", which is a file containing one line for
  19. # every archive on this CD, where each line consists of the full pathname
  20. # to the archive, followed by the version number of that material in that
  21. # archive (if known).  It can be fed to "symlinks" to build symbolic links
  22. # to each archive on the CD.
  23.  
  24. P-V.list :
  25.         pitool -b -f - -F "%P %V\n" >P-V.list /FrozenFish-Apr94
  26.  
  27. symlinks :    symlinks.o
  28.         $(CC) -o symlinks symlinks.o
  29.  
  30. symlinks.o :    symlinks.c
  31.         $(CC) -c $(CFLAGS) symlinks.c
  32.  
  33. # Build the lha archive for the alpha view.
  34.  
  35. VIEW1_FILES =    view1.script pitool symlinks P-V.list view1desc.lha \
  36.         view1.links
  37.  
  38. view1.lha :    $(VIEW1_FILES)
  39.         rm -f view1.lha
  40.         lha -mraxe a view1.lha $(VIEW1_FILES)
  41.  
  42. view1.links :    P-V.list symlinks
  43.         symlinks -V1 -s <P-V.list >view1.links
  44.  
  45. # Build the archive of description files.  This is intended to be
  46. # run in a scratch area, so you have to explicitly make it.
  47. #
  48. # (Note:  There are currently problems with this, so it is commented
  49. #  out.  One problem is that lha crashes the system when asked to to
  50. #  look for #?/files.bbs.  Use this as an example only.)
  51. #
  52. #view1desc.lha :
  53. #        rm -rf links
  54. #        mkdir links
  55. #        (cd links ; ../symlinks -V1 <../P-V.list)
  56. #        (cd links ; ../pitool -b .)
  57. #        (cd links ; lha -mraxe a view1desc.lha #?/files.bbs)
  58. #        mv links/view1desc.lha view1desc.lha
  59. #        rm -rf links
  60.