(global-map): Dyke out the last two event-to-function bindings. These belong
[emacs.git] / src / Makefile.in
blob5f0afca50c3d946ef3903024e85180b246400001
1 # DIST: This is the distribution Makefile for Emacs. configure can
2 # DIST: make most of the changes to this file you might want, so try
3 # DIST: that first.
5 MAKE = make
6 # BSD doesn't have it as a default.
8 # ==================== Things `configure' might edit ====================
10 CC=cc
11 DEFS=-g
12 srcdir=.
14 # ============================= Targets ==============================
16 CPP = $(CC) -E -Is -Im
17 #Note: an alternative is CPP = /lib/cpp
19 # Just to avoid uncertainty.
20 SHELL = /bin/sh
22 CFLAGS=${DEFS}
24 all: doall
26 doall: xmakefile
27 $(MAKE) CC='${CC}' -f xmakefile ${MFLAGS} all
29 #This is used in making a distribution.
30 #Do not use it on development directories!
31 distclean:
32 -rm -f paths.h config.h emacs-* temacs emacs xmakefile core *.o
34 clean:
35 -rm -f temacs emacs prefix-args xmakefile* core \#* *.o
37 versionclean:
38 -rm -f emacs emacs-* ../etc/DOC*
40 extraclean: distclean
41 -rm -f *~ \#* m/*~ s/*~
43 emacs: doemacs
44 @true
46 doemacs: xmakefile
47 $(MAKE) CC='${CC}' -f xmakefile ${MFLAGS} emacs
49 temacs: dotemacs
50 @true
52 dotemacs: xmakefile
53 $(MAKE) CC='${CC}' -f xmakefile ${MFLAGS} temacs
55 SOURCES = *.[ch] [sm]/* COPYING Makefile.in ymakefile \
56 config.h.in README COPYING ChangeLog vms.pp-trans
57 unlock:
58 chmod u+w $(SOURCES)
60 relock:
61 chmod -w $(SOURCES)
62 chmod +w paths.h
64 ### Some makes, like Ultrix's make, complain if you put a comment in
65 ### the middle of a rule's command list! Dummies.
67 ### The flags for optimization and debugging depend on the
68 ### system, so take an ordinary CFLAGS value and choose the
69 ### appropriate CPP symbols to use in ymakefile.
70 ### If you have a problem with cc -E here, changing
71 ### the definition of CPP above may fix it.
72 xmakefile: ymakefile config.h
73 -rm -f xmakefile xmakefile.new junk.c junk.cpp
74 cp ymakefile junk.c
75 ${CPP} ${CFLAGS} junk.c > junk.cpp \
76 -DC_SWITCH_SITE="`echo ${CFLAGS}' ' \
77 | sed -e 's/-g /C_DEBUG_SWITCH /' \
78 -e 's/-O[0-9]* /C_OPTIMIZE_SWITCH /'`"
79 < junk.cpp \
80 sed -e 's/^#.*//' \
81 -e 's/^[ \f\t][ \f\t]*$$//' \
82 -e 's/^ / /' \
83 | sed -n -e '/^..*$$/p' \
84 > xmakefile.new
85 mv -f xmakefile.new xmakefile
86 chmod 444 xmakefile
87 rm -f junk.c junk.cpp
89 tagsfiles = [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.el
90 TAGS: $(tagsfiles)
91 etags $(tagsfiles)
92 tags: TAGS
93 .PHONY: tags