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

  1. #
  2. # lib - makefile for calc library scripts
  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. LIBDIR= /usr/local/lib/calc
  18. # how to build a directory
  19. MKDIR=mkdir -p
  20. #MKDIR=mkdir
  21.  
  22. # The calc files to install
  23. #
  24. CALC_FILES= README bigprime.cal deg.cal ellip.cal lucas.cal lucas_chk.cal \
  25.     lucas_tbl.cal mersenne.cal mod.cal nextprim.cal pell.cal pi.cal \
  26.     pollard.cal poly.cal psqrt.cal quat.cal regress.cal solve.cal \
  27.     sumsq.cal surd.cal unitfrac.cal varargs.cal
  28.  
  29. SHELL= /bin/sh
  30.  
  31. all: ${CALC_FILES}
  32.  
  33. clean:
  34.  
  35. clobber:
  36.  
  37. install: all
  38.     -@if [ ! -d ${LIBDIR} ]; then \
  39.         echo "    ${MKDIR} ${LIBDIR}"; \
  40.         ${MKDIR} ${LIBDIR}; \
  41.     fi
  42.     @for i in ${CALC_FILES}; do \
  43.         echo "    rm -f ${LIBDIR}/$$i"; \
  44.         rm -f ${LIBDIR}/$$i; \
  45.         echo "    chmod 0444 $$i"; \
  46.         chmod 0444 $$i; \
  47.         echo "    cp $$i ${LIBDIR}"; \
  48.         cp $$i ${LIBDIR}; \
  49.     done
  50.