home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume18 / diskhog2 / Makefile < prev    next >
Encoding:
Makefile  |  1989-03-26  |  860 b   |  40 lines

  1. #
  2. BIN=/usr/local/bin                # directory for binaries
  3. DQUOTAS=/usr/local/lib/disk
  4. #
  5. SRC1 = README Makefile configure allowed dcheck.1 alternate
  6. SRC2 = dcheck diskhog diskhog.h nohog.c csh_hog.c nohog.1 diskhog.1 
  7.  
  8. config: .config
  9.  
  10. .config:
  11.     sh configure
  12.     @touch .config
  13.  
  14. install: nohog dcheck diskhog allowed ${DQUOTAS}/hogs ${DQUOTAS}
  15.     @echo "If your system has csh, maybe you need to 'make csh'"
  16.     @echo "Try 'make -n csh' first."
  17.     chown root nohog
  18.     chmod 4111 nohog
  19.     cp nohog ${BIN}
  20.     chmod +x dcheck diskhog
  21.     cp dcheck diskhog ${BIN} 
  22.     cp allowed ${DQUOTAS}
  23.  
  24. csh: csh_hog
  25.     if [ ! -f /etc/csh ] ; then mv /bin/csh /etc/csh ; fi
  26.     cp csh_hog /bin/csh
  27.  
  28. ${DQUOTAS}/hogs:
  29.     mkdir ${DQUOTAS}/hogs
  30.  
  31. ${DQUOTAS}:
  32.     mkdir ${DQUOTAS}
  33.  
  34. shar: ${SRC}
  35.     shar -cv -p X ${SRC1} > diskhog.shar.1
  36.     shar -cv -p X ${SRC2} > diskhog.shar.2
  37.  
  38. README: README.nr
  39.     nroff -cm README.nr > README
  40.