Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # make all to compile and build Emacs
  2. # make install to intall it
  3. # make tags to update tags tables
  4. # make clean to delete everything that wasn't in the distribution
  5. # This is a very dangerous thing to do!
  6. # Where to install things
  7. LIBDIR= /usr/local/emacs
  8. BINDIR= /usr/local/bin
  9. MANDIR= /usr/man/man1
  10. # Subdirectories to make recursively. `lisp' is not included
  11. # because the compiled lisp files are part of the distribution
  12. # and you cannot remake them without installing Emacs first.
  13. SUBDIR= etc src
  14. # Subdirectories to install
  15. COPYDIR= etc info lisp
  16. # Subdirectories to clean
  17. CLEANDIR= ${COPYDIR} lisp/term
  18. all: ${SUBDIR} lock
  19. src: etc
  20. .RECURSIVE: ${SUBDIR}
  21. ${SUBDIR}: FRC
  22. cd $@; make ${MFLAGS} all
  23. install: all
  24. -mkdir ${LIBDIR}
  25. -chmod 777 ${LIBDIR}
  26. tar cf - ${COPYDIR} | (cd ${LIBDIR}; tar xpBvf - )
  27. for i in ${CLEANDIR}; do \
  28. (rm -rf ${LIBDIR}/$$i/RCS; \
  29. rm -f ${LIBDIR}/$$i/\#*; \
  30. rm -f ${LIBDIR}/$$i/*~); \
  31. done
  32. install -c -s -g kmem -m 2755 etc/loadst ${LIBDIR}/etc/loadst
  33. install -c -s etc/etags ${BINDIR}/etags
  34. install -c -s etc/ctags ${BINDIR}/ctags
  35. install -c -s -m 1755 src/xemacs ${BINDIR}/xemacs
  36. install -c -m 777 etc/emacs.1 ${MANDIR}/emacs.1
  37. -rm -f ${BINDIR}/emacs
  38. mv ${BINDIR}/xemacs ${BINDIR}/emacs
  39. clean:
  40. for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean; cd ..); done
  41. lock:
  42. -mkdir ${LIBDIR}/lock
  43. chmod 777 ${LIBDIR}/lock
  44. FRC:
  45. tags: etc
  46. cd src; ../etc/etags *.{c,h} ../lisp/*.el ../lisp/term/*.el