|
|
1.1 ! root 1: # ! 2: # Top level Makefile for the University of Illinois Notesfile ! 3: # package. This Makefile manages compilation of the entire ! 4: # package, updating the distribution copy, and not a lot else. ! 5: # It isn't particularly good for installing the code even though ! 6: # it has a case to do just that. ! 7: # ! 8: # Define the Source files ! 9: # ! 10: SRC= Makefile Answer.this README HINTS ! 11: SUBDIR= doc man src utility ! 12: ! 13: # ! 14: # Some directories and commands ! 15: # ! 16: DCP= /usr/ucb/rcp ! 17: DISTHOST= uiucdcsp ! 18: DDIR= /usr/src/uiuc/notesfiles ! 19: DISTDIR= ${DISTHOST}:${DDIR} ! 20: UUCPHOST= uiucdcs ! 21: FTPHOST= uiucdcs ! 22: ! 23: # The nice normal rules that everyone pays attention to. ! 24: ! 25: all: $(SUBDIR) ! 26: for i in ${SUBDIR}; do (cd $$i; echo $$i; make ${MFLAGS}); done; ! 27: ! 28: install: ! 29: for i in ${SUBDIR}; do (cd $$i; echo $$i; make ${MFLAGS} install); done; ! 30: ! 31: clean: ! 32: for i in ${SUBDIR}; do (cd $$i; echo $$i; make clean); done; ! 33: ! 34: ${SUBDIR}: FRC ! 35: ! 36: FRC: ! 37: ! 38: # ! 39: # Here come the biggies; ! 40: # ! 41: # Revision management ! 42: ! 43: freeze: $(SRC) ! 44: ci -r1.6.1 $? ! 45: co -r1.6.1 $? ! 46: chmod ug+w $? ! 47: touch freeze ! 48: ! 49: # ! 50: # Send updates to the distribution machine ! 51: # ! 52: ! 53: dist: ldist subdist ! 54: /usr/ucb/rsh ${DISTHOST} -n "cd ${DDIR}; make MANIFEST" ! 55: touch dist ! 56: ! 57: subdist: ! 58: for i in $(SUBDIR); do \ ! 59: (cd $$i;echo $$i; make ${MFLAGS} DCP=${DCP} DISTDIR=${DISTDIR} dist); done ! 60: ! 61: ldist: $(SRC) ! 62: $(DCP) $? $(DISTDIR)/. ! 63: touch ldist ! 64: ! 65: MANIFEST: FRC ! 66: find . -type f -print | sort > MANIFEST ! 67: ! 68: FRC: ! 69: ! 70: ftp uucp: MANIFEST ! 71: @echo "Checking if you are on the right machine...." ! 72: @if [ `hostname` = ${DISTHOST} ]; then \ ! 73: echo "Ok, you are on the right machine"; true; \ ! 74: else \ ! 75: echo "Must be done from ${DISTHOST}"; false; \ ! 76: fi ! 77: tar rcf /tmp/Notes.tar . ! 78: @echo "Sizes" ! 79: @du . ! 80: @echo "Making a Compressed Copy" ! 81: compress < /tmp/Notes.tar > /tmp/Notes.tar.Z ! 82: @ls -l /tmp/Notes.tar /tmp/Notes.tar.Z ! 83: @echo "Copy to the UUCP host" ! 84: @echo "The uucpable copies are symlinked to the FTP'able copies..." ! 85: # rcp /tmp/Notes.tar ${UUCPHOST}:/usr/spool/uucppublic/Notes.tar ! 86: # rcp /tmp/Notes.tar.Z ${UUCPHOST}:/usr/spool/uucppublic/Notes.tar.Z ! 87: rsh ${UUCPHOST} -n ls -l /usr/spool/uucppublic/Notes.tar /usr/spool/uucppublic/Notes.tar.Z ! 88: @echo "Copy to the FTP host" ! 89: rcp /tmp/Notes.tar "${FTPHOST}:~ftp/pub/Notes.tar" ! 90: rcp /tmp/Notes.tar.Z "${FTPHOST}:~ftp/pub/Notes.tar.Z" ! 91: rsh ${FTPHOST} -n "ls -l ~ftp/pub/Notes.tar ~ftp/pub/Notes.tar.Z" ! 92: @echo "Unpack for people to get individual files" ! 93: rsh ${FTPHOST} -n "cd ~ftp/pub/notes; tar xfp ~ftp/pub/Notes.tar" ! 94: rm -f /tmp/Notes.tar /tmp/Notes.tar.Z ! 95:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.