|
|
1.1 ! root 1: # make all to compile and build Emacs ! 2: # make install to install it ! 3: # make install.sysv to install on system V. ! 4: # make install.xenix to install on Xenix ! 5: # make tags to update tags tables ! 6: # ! 7: # make distclean to delete everything that wasn't in the distribution ! 8: # This is a very dangerous thing to do! ! 9: # make clean ! 10: # This is a little less dangerous. ! 11: ! 12: SHELL = /bin/sh ! 13: ! 14: # Where to install things ! 15: # Note that on system V you must change MANDIR to /use/local/man/man1. ! 16: LIBDIR= /usr/contrib/lib/emacs ! 17: BINDIR= /usr/contrib ! 18: #MANDIR= /usr/share/man ! 19: CMANDIR= /usr/contrib/man/cat1 ! 20: ! 21: # Flags passed down to subdirectory makefiles. ! 22: MFLAGS= ! 23: ! 24: # Subdirectories to make recursively. `lisp' is not included ! 25: # because the compiled lisp files are part of the distribution ! 26: # and you cannot remake them without installing Emacs first. ! 27: SUBDIR= etc src ! 28: ! 29: # Subdirectories to install ! 30: COPYDIR= etc info lisp ! 31: ! 32: # Subdirectories to clean ! 33: CLEANDIR= ${COPYDIR} lisp/term ! 34: ! 35: all: src/paths.h ${SUBDIR} ! 36: ! 37: src/paths.h: Makefile src/paths.h-dist ! 38: /usr/bin/sed 's;/usr/local/emacs;${LIBDIR};' < src/paths.h-dist > src/paths.h ! 39: ! 40: src: etc ! 41: ! 42: .RECURSIVE: ${SUBDIR} ! 43: ! 44: ${SUBDIR}: FRC ! 45: cd $@; make ${MFLAGS} all ! 46: ! 47: install: all mkdir lockdir ! 48: -if [ `/bin/pwd` != `(cd ${LIBDIR}; /bin/pwd)` ] ; then \ ! 49: tar cf - ${COPYDIR} | (cd ${LIBDIR}; umask 0; tar xBf - ) ;\ ! 50: for i in ${CLEANDIR}; do \ ! 51: (rm -rf ${LIBDIR}/$$i/RCS; \ ! 52: rm -f ${LIBDIR}/$$i/\#*; \ ! 53: rm -f ${LIBDIR}/$$i/*~); \ ! 54: done \ ! 55: fi ! 56: install -c -s -g kmem -m 2755 etc/loadst ${LIBDIR}/etc/loadst ! 57: install -c -s etc/etags ${BINDIR}/etags ! 58: install -c -s etc/ctags ${BINDIR}/ctags ! 59: install -c -s -m 1755 src/xemacs ${BINDIR}/xemacs ! 60: install -c -m 444 etc/emacs.cat ${CMANDIR}/emacs.l ! 61: -rm -f ${BINDIR}/emacs ! 62: mv ${BINDIR}/xemacs ${BINDIR}/emacs ! 63: ! 64: install.sysv: all mkdir lockdir ! 65: -if [ `/bin/pwd` != `(cd ${LIBDIR}; /bin/pwd)` ] ; then \ ! 66: find ${COPYDIR} -print | cpio -pdum ${LIBDIR} ;\ ! 67: for i in ${CLEANDIR}; do \ ! 68: (rm -rf ${LIBDIR}/$$i/RCS; \ ! 69: rm -f ${LIBDIR}/$$i/\#*; \ ! 70: rm -f ${LIBDIR}/$$i/*~); \ ! 71: done \ ! 72: fi ! 73: -cpset etc/loadst ${BINDIR}/loadst 2755 bin sys ! 74: -cpset etc/etags ${BINDIR}/etags 755 bin bin ! 75: -cpset etc/ctags ${BINDIR}/ctags 755 bin bin ! 76: -cpset etc/emacs.1 ${MANDIR}/emacs.1 444 bin bin ! 77: -/bin/rm -f ${BINDIR}/emacs ! 78: -cpset src/xemacs ${BINDIR}/emacs 1755 bin bin ! 79: ! 80: install.xenix: all mkdir lockdir ! 81: if [ `pwd` != `(cd ${LIBDIR}; pwd)` ] ; then \ ! 82: tar cf - ${COPYDIR} | (cd ${LIBDIR}; umask 0; tar xpf - ) ;\ ! 83: for i in ${CLEANDIR}; do \ ! 84: (rm -rf ${LIBDIR}/$$i/RCS; \ ! 85: rm -f ${LIBDIR}/$$i/\#*; \ ! 86: rm -f ${LIBDIR}/$$i/*~); \ ! 87: done \ ! 88: fi ! 89: -mv -f ${LIBDIR}/etc/loadst ${LIBDIR}/etc/loadst.old ! 90: cp etc/loadst ${LIBDIR}/etc/loadst ! 91: chown sysinfo ${LIBDIR}/etc/loadst ! 92: chmod 4755 ${LIBDIR}/etc/loadst ! 93: -rm -f ${LIBDIR}/etc/loadst.old ! 94: cp etc/etags etc/ctags ${BINDIR} ! 95: chmod 755 ${BINDIR}/etags ${BINDIR}/ctags ! 96: cp etc/emacs.1 ${MANDIR}/emacs.1 ! 97: chmod 444 ${MANDIR}/emacs.1 ! 98: -mv -f ${BINDIR}/emacs ${BINDIR}/emacs.old ! 99: cp src/xemacs ${BINDIR}/emacs ! 100: chmod 1755 ${BINDIR}/emacs ! 101: -rm -f ${BINDIR}/emacs.old ! 102: ! 103: mkdir: FRC ! 104: -mkdir ${LIBDIR} ! 105: -chmod 777 ${LIBDIR} ! 106: ! 107: distclean: ! 108: for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} distclean); done ! 109: ! 110: clean: ! 111: cd src; make clean ! 112: ! 113: lockdir: ! 114: -mkdir ${LIBDIR}/lock ! 115: -chmod 777 ${LIBDIR}/lock ! 116: ! 117: FRC: ! 118: ! 119: tags: etc ! 120: cd src; ../etc/etags *.[ch] ../lisp/*.el ../lisp/term/*.el
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.