home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / c / cops_104.zip / cops_104 / checkacct / Makefile < prev    next >
Makefile  |  1992-03-10  |  1KB  |  68 lines

  1. #    $Id: Makefile,v 1.1 91/12/04 13:43:49 shabby Exp Locker: shabby $
  2. #
  3. #    Makefile for chkacct
  4. #
  5.  
  6. DESTDIR=    /usr/local
  7. PROG=    chkacct
  8. BIN=    ${DESTDIR}/bin
  9. LIB=    ${DESTDIR}/lib/chkacct
  10. DOC=    ${DESTDIR}/man
  11.  
  12. INSTALLFLAGSLIB=    -r -D -cm 0444
  13. INSTALLFLAGSBIN=    -r -D -cm 0755
  14.  
  15. SRCs=    ca.src
  16. M4SRC=    defines.m4
  17. MAN=    chkacct.1l
  18. PERLSRC=    rhosts.pl
  19. OTHER=    README
  20. SRCl=    dotwrite effect.dotwrit effect.owners effect.read effect.rhosts\
  21.     effect.setuid effect.write Intro owners readable rhosts setuid write\
  22.     prompt.help Article
  23.  
  24. SOURCE=    Makefile ${M4SRC} ${OTHER} ${MAN} ${SRCl} ${SRCs} ${PERLSRC}
  25.  
  26. all: ${SRCl} ${PROG}
  27.  
  28. ${PROG}: ${SRCs}
  29.     m4 ${M4SRC} ${SRCs} > $@
  30.     chmod 755 $@
  31.  
  32. ${M4SRC}:    
  33.     echo "Remember to get a copy of the right m4 file.!";
  34.  
  35. clean: FRC
  36.     rm -f Makefile.bak ${PROG} a.out core errs lint.out tags
  37.  
  38. depend: FRC
  39.  
  40. install: all FRC
  41.     install ${INSTALLFLAGSLIB} ${SRCl} ${LIB}
  42.     install ${INSTALLFLAGSBIN} ${PERLSRC} ${LIB}
  43.     install ${INSTALLFLAGSBIN} ${PROG} ${BIN}
  44.  
  45. lint: FRC
  46.  
  47. mkcat: ${MAN} ${DOC} FRC
  48.     mkcat -r${DOC} ${MAN}
  49.  
  50. print: source FRC
  51.     lpr -J'${PROG} source' ${SOURCE}
  52.  
  53. source: ${SOURCE}
  54.  
  55. spotless: clean
  56.     rcsclean ${SOURCE}
  57.  
  58. tags: FRC
  59.  
  60. ${SOURCE}:
  61.     co -q $@
  62.  
  63. FRC:
  64.  
  65. # DO NOT DELETE THIS LINE - make depend DEPENDS ON IT
  66.  
  67. # *** Do not add anything here - It will go away. ***
  68.