annotate src/=Makefile.in @ 1724:2dccfada2107

(visit-tags-table-buffer): When picking a table and using tags-table-list, skip over nonexistent files in the list.
author Roland McGrath <roland@gnu.org>
date Thu, 24 Dec 1992 22:42:05 +0000
parents 36903f26b5cc
children 04fb1d3d6992
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 887
diff changeset
1 # DIST: This is the distribution Makefile for Emacs. configure can
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 887
diff changeset
2 # DIST: make most of the changes to this file you might want, so try
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 887
diff changeset
3 # DIST: that first.
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 887
diff changeset
4
158
a4e766535a97 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 33
diff changeset
5 MAKE = make
a4e766535a97 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 33
diff changeset
6 # BSD doesn't have it as a default.
a4e766535a97 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 33
diff changeset
7
1677
bf8ee433f4d2 * Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
8 # ==================== Things `configure' might edit ====================
bf8ee433f4d2 * Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
9
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1639
diff changeset
10 CC=cc
1677
bf8ee433f4d2 * Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
11 CONFIG_CFLAGS=-g
bf8ee433f4d2 * Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
12 srcdir=.
bf8ee433f4d2 * Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
13
bf8ee433f4d2 * Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
14 # ============================= Targets ==============================
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1639
diff changeset
15
732
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
16 CPP = $(CC) -E -Is -Im
33
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
17 #Note: an alternative is CPP = /lib/cpp
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
18
186
3cbe2e1f5585 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 158
diff changeset
19 # Just to avoid uncertainty.
3cbe2e1f5585 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 158
diff changeset
20 SHELL = /bin/sh
3cbe2e1f5585 *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 158
diff changeset
21
1677
bf8ee433f4d2 * Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
22 CFLAGS=${CONFIG_CFLAGS}
bf8ee433f4d2 * Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
23
1561
82e64050c565 * Makefile.in: Rearrange dependencies to make sure that xmakefile
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
24 all: doall
33
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
25
1561
82e64050c565 * Makefile.in: Rearrange dependencies to make sure that xmakefile
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
26 doall: xmakefile
857
cc52c6087403 *** empty log message ***
Roland McGrath <roland@gnu.org>
parents: 732
diff changeset
27 $(MAKE) CC='${CC}' -f xmakefile ${MFLAGS} all
33
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
28
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
29 #This is used in making a distribution.
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
30 #Do not use it on development directories!
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
31 distclean:
1706
36903f26b5cc * ymakefile (all, xemacs): We build an executable called `emacs' now,
Jim Blandy <jimb@redhat.com>
parents: 1694
diff changeset
32 -rm -f paths.h config.h emacs-* temacs emacs xmakefile core *.o
33
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
33
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
34 clean:
1706
36903f26b5cc * ymakefile (all, xemacs): We build an executable called `emacs' now,
Jim Blandy <jimb@redhat.com>
parents: 1694
diff changeset
35 -rm -f temacs emacs prefix-args xmakefile* core \#* *.o
33
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
36
1677
bf8ee433f4d2 * Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
37 extraclean: distclean
bf8ee433f4d2 * Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
38 -rm -f *~ \#* m/*~ s/*~
bf8ee433f4d2 * Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
39
1706
36903f26b5cc * ymakefile (all, xemacs): We build an executable called `emacs' now,
Jim Blandy <jimb@redhat.com>
parents: 1694
diff changeset
40 emacs: doemacs
33
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
41
1706
36903f26b5cc * ymakefile (all, xemacs): We build an executable called `emacs' now,
Jim Blandy <jimb@redhat.com>
parents: 1694
diff changeset
42 doemacs: xmakefile
36903f26b5cc * ymakefile (all, xemacs): We build an executable called `emacs' now,
Jim Blandy <jimb@redhat.com>
parents: 1694
diff changeset
43 $(MAKE) CC='${CC}' -f xmakefile ${MFLAGS} emacs
33
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
44
1561
82e64050c565 * Makefile.in: Rearrange dependencies to make sure that xmakefile
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
45 temacs: dotemacs
33
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
46
1561
82e64050c565 * Makefile.in: Rearrange dependencies to make sure that xmakefile
Jim Blandy <jimb@redhat.com>
parents: 1113
diff changeset
47 dotemacs: xmakefile
1585
447d89e51c6e * Makefile.in (doxemacs, dotemacs): Explicitly pass along the CC
Jim Blandy <jimb@redhat.com>
parents: 1561
diff changeset
48 $(MAKE) CC='${CC}' -f xmakefile ${MFLAGS} temacs
33
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
49
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
50 # If you have a problem with cc -E here, changing
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
51 # the definition of CPP above may fix it.
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
52 xmakefile: ymakefile config.h
732
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
53 -rm -f xmakefile xmakefile.new junk.c junk.cpp
33
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
54 cp ymakefile junk.c
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1639
diff changeset
55 ## The flags for optimization and debugging depend on the
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1639
diff changeset
56 ## system, so take an ordinary CFLAGS value and choose the
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1639
diff changeset
57 ## appropriate CPP symbols to use in ymakefile.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1639
diff changeset
58 $(CPP) junk.c > junk.cpp \
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1639
diff changeset
59 -DC_SWITCH_SITE="`echo ${CFLAGS}' ' \
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1639
diff changeset
60 | sed -e 's/-g /C_DEBUG_SWITCH /' \
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1639
diff changeset
61 -e 's/-O /C_OPTIMIZE_SWITCH /`"
732
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
62 < junk.cpp \
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
63 sed -e 's/^#.*//' \
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
64 -e 's/^[ \f\t][ \f\t]*$$//' \
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
65 -e 's/^ / /' \
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
66 | sed -n -e '/^..*$$/p' \
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
67 > xmakefile.new
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
68 mv -f xmakefile.new xmakefile
1677
bf8ee433f4d2 * Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
69 chmod 444 xmakefile
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1639
diff changeset
70 rm -f junk.c junk.cpp
33
d79553328306 Initial revision
Joseph Arceneaux <jla@gnu.org>
parents:
diff changeset
71
1694
ca439341a0e5 (tagsfiles): New variable.
Roland McGrath <roland@gnu.org>
parents: 1677
diff changeset
72 tagsfiles = [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.el \
ca439341a0e5 (tagsfiles): New variable.
Roland McGrath <roland@gnu.org>
parents: 1677
diff changeset
73 ../external-lisp/*.el
ca439341a0e5 (tagsfiles): New variable.
Roland McGrath <roland@gnu.org>
parents: 1677
diff changeset
74 TAGS: $(tagsfiles)
ca439341a0e5 (tagsfiles): New variable.
Roland McGrath <roland@gnu.org>
parents: 1677
diff changeset
75 etags $(tagsfiles)
ca439341a0e5 (tagsfiles): New variable.
Roland McGrath <roland@gnu.org>
parents: 1677
diff changeset
76 tags: TAGS
ca439341a0e5 (tagsfiles): New variable.
Roland McGrath <roland@gnu.org>
parents: 1677
diff changeset
77 .PHONY: tags