Mercurial > emacs
view src/=Makefile.in @ 1675:2d6fee9f818d
* Makefile.in (exec_prefix): New variable.
(bindir, libdir): Use it instead of `prefix'.
* Makefile.in (CFLAGS): #define HAVE_CONFIG_H, too.
* Makefile.in (libdir): Default to ${prefix}/lib.
(archlibdir): Adjusted to match.
* Makefile.in (distclean): Don't delete backup or autosave files.
(extraclean): Like realclean, but does delete backup and autosave
files.
* Makefile.in (realclean): Ignore errors from rm.
* Makefile.in (distclean): Don't bother to delete ../arch-lib;
that doesn't exist anymore.
* Makefile.in (prefix, bindir, libdir, srcdir): New variables, as
described in the top-level Makefile.
(UTILITIES): Add make-path to the list of utility programs.
(../arch-lib): Replaced by the ${archlibdir} target, which places
the executables in their permanent home.
(install, install.sysv, install.xenix): Consolidated into one
target which should work under all circumstances, modulo a few
ignored error messages.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sat, 12 Dec 1992 15:24:50 +0000 |
parents | bd3afc204773 |
children | bf8ee433f4d2 |
line wrap: on
line source
# DIST: This is the distribution Makefile for Emacs. configure can # DIST: make most of the changes to this file you might want, so try # DIST: that first. MAKE = make # BSD doesn't have it as a default. # These values are edited by configure. CC=cc CFLAGS=-g CPP = $(CC) -E -Is -Im #Note: an alternative is CPP = /lib/cpp # Just to avoid uncertainty. SHELL = /bin/sh all: doall doall: xmakefile $(MAKE) CC='${CC}' -f xmakefile ${MFLAGS} all #This is used in making a distribution. #Do not use it on development directories! distclean: -rm -f paths.h config.h machine.h system.h emacs-* temacs xemacs xmakefile core *~ m/*~ s/*~ \#* *.o clean: -rm -f temacs xemacs prefix-args xmakefile* core \#* *.o xemacs: doxemacs doxemacs: xmakefile $(MAKE) CC='${CC}' -f xmakefile ${MFLAGS} xemacs temacs: dotemacs dotemacs: xmakefile $(MAKE) CC='${CC}' -f xmakefile ${MFLAGS} temacs # If you have a problem with cc -E here, changing # the definition of CPP above may fix it. xmakefile: ymakefile config.h -rm -f xmakefile xmakefile.new junk.c junk.cpp cp ymakefile junk.c ## The flags for optimization and debugging depend on the ## system, so take an ordinary CFLAGS value and choose the ## appropriate CPP symbols to use in ymakefile. $(CPP) junk.c > junk.cpp \ -DC_SWITCH_SITE="`echo ${CFLAGS}' ' \ | sed -e 's/-g /C_DEBUG_SWITCH /' \ -e 's/-O /C_OPTIMIZE_SWITCH /`" < junk.cpp \ sed -e 's/^#.*//' \ -e 's/^[ \f\t][ \f\t]*$$//' \ -e 's/^ / /' \ | sed -n -e '/^..*$$/p' \ > xmakefile.new mv -f xmakefile.new xmakefile rm -f junk.c junk.cpp tags TAGS: etags [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.el \ ../external-lisp/*.el