home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Utilities / Calc / help / Makefile < prev    next >
Encoding:
Makefile  |  1992-02-24  |  1.6 KB  |  71 lines  |  [TEXT/????]

  1. #
  2. # help - makefile for calc help files
  3. #
  4. # Copyright (c) 1992 David I. Bell and Landon Curt Noll
  5. # Permission is granted to use, distribute, or modify this source,
  6. # provided that this copyright notice remains intact.
  7. #
  8. # Arbitrary precision calculator.
  9. #
  10. # calculator by David I. Bell
  11. # makefile by Landon Curt Noll
  12.  
  13. # Normally, the upper level makefile will set these values.  We provide
  14. # a default here just in case you want to build from this directory.
  15. #
  16. # where to install things
  17. HELPDIR= /usr/local/lib/calc/help
  18. # how to build a directory
  19. MKDIR=mkdir -p
  20. #MKDIR=mkdir
  21.  
  22. # The header file, along with these files form the full help file.
  23. #
  24. FULL_HELP_FILES=intro command expression define variable statement \
  25.     operator types obj mat list file builtin config interrupt \
  26.     history usage credit
  27.  
  28. # We install these help files
  29. #
  30. HELP_FILES= ${FULL_HELP_FILES} full overview stdlib environment todo credit help
  31.  
  32. SHELL= /bin/sh
  33.  
  34. all: ${HELP_FILES}
  35.  
  36. full: header ${FULL_HELP_FILES}
  37.     rm -f full
  38.     cp header full
  39.     chmod +w full
  40.     @for i in ${FULL_HELP_FILES}; do \
  41.         echo '' >> full; \
  42.         echo '' >> full; \
  43.         echo "cat $$i >> full"; \
  44.         cat $$i >> full; \
  45.     done
  46.     chmod 0444 full
  47.  
  48. stdlib: ../lib/README
  49.     rm -f stdlib
  50.     cp ../lib/README stdlib
  51.     chmod 0444 stdlib
  52.  
  53. clean:
  54.  
  55. clobber:
  56.     rm -f full stdlib
  57.  
  58. install: all
  59.     -@if [ ! -d ${HELPDIR} ]; then \
  60.         echo "    ${MKDIR} ${HELPDIR}"; \
  61.         ${MKDIR} ${HELPDIR}; \
  62.     fi
  63.     @for i in ${HELP_FILES}; do \
  64.         echo "    rm -f ${HELPDIR}/$$i"; \
  65.         rm -f ${HELPDIR}/$$i; \
  66.         echo "    chmod 0444 $$i"; \
  67.         chmod 0444 $$i; \
  68.         echo "    cp $$i ${HELPDIR}"; \
  69.         cp $$i ${HELPDIR}; \
  70.     done
  71.