]> code.delx.au - gnu-emacs/blob - src/Makefile.in
* xdisp.c (display_text_line): Apply faces to characters according
[gnu-emacs] / src / Makefile.in
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.
4
5 MAKE = make
6 # BSD doesn't have it as a default.
7
8 # ==================== Things `configure' might edit ====================
9
10 CC=cc
11 CFLAGS=-g
12 srcdir=.
13 LN_S=ln -s
14
15 # ============================= Targets ==============================
16
17 CPP = $(CC) -E -Is -Im
18 #Note: an alternative is CPP = /lib/cpp
19
20 # Just to avoid uncertainty.
21 SHELL = /bin/sh
22
23 SUBMAKEFLAGS = CC='${CC}' LN_S='${LN_S}'
24
25 all: doall
26
27 doall: xmakefile
28 $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} all
29
30 #This is used in making a distribution.
31 #Do not use it on development directories!
32 distclean:
33 -rm -f paths.h config.h emacs-* temacs emacs xmakefile core *.o
34
35 clean:
36 -rm -f temacs emacs prefix-args xmakefile* core \#* *.o
37
38 versionclean:
39 -rm -f emacs emacs-* ../etc/DOC*
40
41 extraclean: distclean
42 -rm -f *~ \#* m/*~ s/*~
43
44 emacs: doemacs
45 @true
46
47 doemacs: xmakefile
48 $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} emacs
49
50 temacs: dotemacs
51 @true
52
53 dotemacs: xmakefile
54 $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} temacs
55
56 SOURCES = *.[ch] [sm]/* COPYING Makefile.in ymakefile \
57 config.h.in README COPYING ChangeLog vms.pp-trans
58 unlock:
59 chmod u+w $(SOURCES)
60
61 relock:
62 chmod -w $(SOURCES)
63 chmod +w paths.h
64
65 ### Some makes, like Ultrix's make, complain if you put a comment in
66 ### the middle of a rule's command list! Dummies.
67
68 ### The flags for optimization and debugging depend on the
69 ### system, so take an ordinary CFLAGS value and choose the
70 ### appropriate CPP symbols to use in ymakefile.
71 ### If you have a problem with cc -E here, changing
72 ### the definition of CPP above may fix it.
73 xmakefile: ymakefile config.h
74 -rm -f xmakefile xmakefile.new junk.c junk.cpp
75 cp ymakefile junk.c
76 ${CPP} ${CFLAGS} junk.c > junk.cpp \
77 -DC_SWITCH_SITE="`echo ${CFLAGS}' ' \
78 | sed -e 's/-g /C_DEBUG_SWITCH /' \
79 -e 's/-O[0-9]* /C_OPTIMIZE_SWITCH /'`"
80 < junk.cpp \
81 sed -e 's/^#.*//' \
82 -e 's/^[ \f\t][ \f\t]*$$//' \
83 -e 's/^ / /' \
84 | sed -n -e '/^..*$$/p' \
85 > xmakefile.new
86 mv -f xmakefile.new xmakefile
87 chmod 444 xmakefile
88 rm -f junk.c junk.cpp
89
90 tagsfiles = [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.el
91 TAGS: $(tagsfiles)
92 etags $(tagsfiles)
93 tags: TAGS
94 .PHONY: tags