home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / gnuforth / makefile < prev    next >
Makefile  |  1992-05-19  |  2KB  |  96 lines

  1. # NAME
  2. #    Makefile - for management of the tile forth environment
  3. # SYNOPSIS
  4. #    make [option]
  5. # DESCRIPTION
  6. #    General environment coordinator for the threaded interpreter language
  7. #    environment (TILE). Allows packaging for distribution etc.
  8. # OPTIONS
  9. #       forth
  10. #        Compiles the forth compiler/interpreter.
  11. #       new
  12. #        Recompile the forth application without optimization.
  13. #       opt
  14. #        Recompile the forth application with optimization.
  15. #       index
  16. #           Creates index file for available library defintions.
  17. #       help
  18. #               Creates the documentation file for the emacs forth mode.
  19. #    kit
  20. #        Pack the available files for mailing.
  21. #    tar
  22. #        Pack the available files for ftp'ing.
  23. # SEE ALSO
  24. #    make(1), makekit(1), tar(1)
  25. # AUTHOR
  26. #    Copyright (C) 1990, Mikael R.K. Patel
  27. #    Computer Aided Design Laboratory (CADLAB)
  28. #    Department of Computer and Information Science
  29. #    Linkoping University
  30. #    S-581 83 LINKOPING
  31. #    SWEDEN
  32. #    Email: mip@ida.liu.se
  33. # HISTORY
  34. #    Started on:      23 May 1990
  35. #    Last updated on: 10 September 1990
  36. #
  37.  
  38. # Compile tile forth
  39. forth:
  40.     cd src ; make
  41.  
  42. # Recompile tile forth kernel without optimization
  43. new:
  44.     cd src ; make new
  45.  
  46. # Recompile tile forth kernel with optimization
  47. opt:
  48.     cd src ; make opt
  49.  
  50. # Create index file for library definitions
  51. index:
  52.     makeindex lib/* tst/* > INDEX
  53.  
  54. # Create documentation files for the emacs forth mode
  55. help: 
  56.     rm -f doc/*
  57.     makedoc man/man3/*
  58.     mv man/man3/*.doc doc
  59.  
  60. # Packs the available source and documentation for mailing
  61. kit:
  62.     touch src/forth.o
  63.     touch bin/forth
  64.     mv src/*.o tmp
  65.     mv bin/forth tmp
  66.     makekit -ntile.kit. \
  67.         Makefile COPYING README PORTING INSTALL INDEX \
  68.         bin bin/* src src/* lib lib/* tst tst/* \
  69.         man man/man1 man/man1/* \
  70.         > tile.kit.index
  71.     mv tile.kit.* shar
  72.     makekit -ntile.man. \
  73.         doc man/man3 man/man3/* \
  74.         > tile.man.index
  75.     mv tile.man.* shar
  76.     mv tmp/*.o src
  77.     mv tmp/forth bin
  78.     date > shar/tile.kit.date
  79.  
  80. # Packs the available source and documentation for ftp'ing
  81. tar:
  82.     touch src/forth.o
  83.     touch bin/forth
  84.     mv src/*.o tmp
  85.     mv bin/forth tmp
  86.     mv doc/* tmp
  87.     tar -cvf tile.tar \
  88.         Makefile COPYING README PORTING INSTALL INDEX \
  89.         bin src lib tst doc man
  90.     compress tile.tar
  91.     mv tile.tar.Z shar
  92.     mv tmp/*.o src
  93.     mv tmp/forth bin
  94.     mv tmp/*.doc doc
  95.     date > shar/tile.tar.date
  96.