Mercurial > emacs
annotate src/=Makefile.in @ 4033:431bc7d22c70
Initial revision
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 08 Jul 1993 21:10:59 +0000 |
parents | 6c2fc671adec |
children | bd7c1de63152 |
rev | line source |
---|---|
1113 | 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 | |
158 | 5 MAKE = make |
6 # BSD doesn't have it as a default. | |
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 |
3783
6c2fc671adec
* Makefile.in (CPP): New variable, set by the top-level Makefile.
Jim Blandy <jimb@redhat.com>
parents:
3754
diff
changeset
|
11 CPP=cc -E |
2720
ad53bd625e1c
* Makefile.in (DEFS): Remove this; we have configure build a
Jim Blandy <jimb@redhat.com>
parents:
2517
diff
changeset
|
12 CFLAGS=-g |
2816
7c0be881a633
Install David Mackenzie's patches to make ${srcdir} work.
Jim Blandy <jimb@redhat.com>
parents:
2720
diff
changeset
|
13 srcdir=@srcdir@/src |
7c0be881a633
Install David Mackenzie's patches to make ${srcdir} work.
Jim Blandy <jimb@redhat.com>
parents:
2720
diff
changeset
|
14 VPATH=@srcdir@/src |
2720
ad53bd625e1c
* Makefile.in (DEFS): Remove this; we have configure build a
Jim Blandy <jimb@redhat.com>
parents:
2517
diff
changeset
|
15 LN_S=ln -s |
1677
bf8ee433f4d2
* Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
16 |
bf8ee433f4d2
* Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
17 # ============================= Targets ============================== |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1639
diff
changeset
|
18 |
732 | 19 CPP = $(CC) -E -Is -Im |
33 | 20 #Note: an alternative is CPP = /lib/cpp |
21 | |
186
3cbe2e1f5585
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
158
diff
changeset
|
22 # Just to avoid uncertainty. |
3cbe2e1f5585
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
158
diff
changeset
|
23 SHELL = /bin/sh |
3cbe2e1f5585
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
158
diff
changeset
|
24 |
3312
c92752c3e4b6
* Makefile.in (SUBMAKEFLAGS): Remember to propagate MAKE.
Jim Blandy <jimb@redhat.com>
parents:
2969
diff
changeset
|
25 SUBMAKEFLAGS = CC='${CC}' LN_S='${LN_S}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' |
1677
bf8ee433f4d2
* Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
26 |
1561
82e64050c565
* Makefile.in: Rearrange dependencies to make sure that xmakefile
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
27 all: doall |
33 | 28 |
1561
82e64050c565
* Makefile.in: Rearrange dependencies to make sure that xmakefile
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
29 doall: xmakefile |
2720
ad53bd625e1c
* Makefile.in (DEFS): Remove this; we have configure build a
Jim Blandy <jimb@redhat.com>
parents:
2517
diff
changeset
|
30 $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} all |
33 | 31 |
3754
200d504045b9
Bring mumbleclean targets into conformance with GNU coding standards.
Jim Blandy <jimb@redhat.com>
parents:
3570
diff
changeset
|
32 mostlyclean: |
200d504045b9
Bring mumbleclean targets into conformance with GNU coding standards.
Jim Blandy <jimb@redhat.com>
parents:
3570
diff
changeset
|
33 rm -f temacs emacs prefix-args xmakefile* core \#* *.o libXMenu11.a |
200d504045b9
Bring mumbleclean targets into conformance with GNU coding standards.
Jim Blandy <jimb@redhat.com>
parents:
3570
diff
changeset
|
34 rm -f ../etc/DOC |
200d504045b9
Bring mumbleclean targets into conformance with GNU coding standards.
Jim Blandy <jimb@redhat.com>
parents:
3570
diff
changeset
|
35 clean: mostlyclean |
200d504045b9
Bring mumbleclean targets into conformance with GNU coding standards.
Jim Blandy <jimb@redhat.com>
parents:
3570
diff
changeset
|
36 true |
33 | 37 #This is used in making a distribution. |
38 #Do not use it on development directories! | |
3754
200d504045b9
Bring mumbleclean targets into conformance with GNU coding standards.
Jim Blandy <jimb@redhat.com>
parents:
3570
diff
changeset
|
39 distclean: clean |
200d504045b9
Bring mumbleclean targets into conformance with GNU coding standards.
Jim Blandy <jimb@redhat.com>
parents:
3570
diff
changeset
|
40 rm -f paths.h config.h emacs-* ../etc/DOC-* |
200d504045b9
Bring mumbleclean targets into conformance with GNU coding standards.
Jim Blandy <jimb@redhat.com>
parents:
3570
diff
changeset
|
41 realclean: distclean |
200d504045b9
Bring mumbleclean targets into conformance with GNU coding standards.
Jim Blandy <jimb@redhat.com>
parents:
3570
diff
changeset
|
42 rm -f TAGS |
2238
1a0fd1591b0d
Add production to nuke binaries and doc files.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2008
diff
changeset
|
43 versionclean: |
1a0fd1591b0d
Add production to nuke binaries and doc files.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2008
diff
changeset
|
44 -rm -f emacs emacs-* ../etc/DOC* |
1677
bf8ee433f4d2
* Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
45 extraclean: distclean |
bf8ee433f4d2
* Makefile.in (distclean): Don't delete machine.h or system.h;
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
46 -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
|
47 |
1706
36903f26b5cc
* ymakefile (all, xemacs): We build an executable called `emacs' now,
Jim Blandy <jimb@redhat.com>
parents:
1694
diff
changeset
|
48 emacs: doemacs |
1962
d658e86a23ae
(emacs, temacs): Add @true to prevent Make confusion.
Richard M. Stallman <rms@gnu.org>
parents:
1821
diff
changeset
|
49 @true |
33 | 50 |
1706
36903f26b5cc
* ymakefile (all, xemacs): We build an executable called `emacs' now,
Jim Blandy <jimb@redhat.com>
parents:
1694
diff
changeset
|
51 doemacs: xmakefile |
2720
ad53bd625e1c
* Makefile.in (DEFS): Remove this; we have configure build a
Jim Blandy <jimb@redhat.com>
parents:
2517
diff
changeset
|
52 $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} emacs |
33 | 53 |
1561
82e64050c565
* Makefile.in: Rearrange dependencies to make sure that xmakefile
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
54 temacs: dotemacs |
1962
d658e86a23ae
(emacs, temacs): Add @true to prevent Make confusion.
Richard M. Stallman <rms@gnu.org>
parents:
1821
diff
changeset
|
55 @true |
33 | 56 |
1561
82e64050c565
* Makefile.in: Rearrange dependencies to make sure that xmakefile
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
57 dotemacs: xmakefile |
2720
ad53bd625e1c
* Makefile.in (DEFS): Remove this; we have configure build a
Jim Blandy <jimb@redhat.com>
parents:
2517
diff
changeset
|
58 $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} temacs |
33 | 59 |
2256
9de581d9bb83
Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2238
diff
changeset
|
60 SOURCES = *.[ch] [sm]/* COPYING Makefile.in ymakefile \ |
9de581d9bb83
Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2238
diff
changeset
|
61 config.h.in README COPYING ChangeLog vms.pp-trans |
9de581d9bb83
Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2238
diff
changeset
|
62 unlock: |
9de581d9bb83
Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2238
diff
changeset
|
63 chmod u+w $(SOURCES) |
9de581d9bb83
Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2238
diff
changeset
|
64 |
9de581d9bb83
Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2238
diff
changeset
|
65 relock: |
9de581d9bb83
Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2238
diff
changeset
|
66 chmod -w $(SOURCES) |
9de581d9bb83
Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2238
diff
changeset
|
67 chmod +w paths.h |
9de581d9bb83
Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2238
diff
changeset
|
68 |
1821
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1706
diff
changeset
|
69 ### Some makes, like Ultrix's make, complain if you put a comment in |
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1706
diff
changeset
|
70 ### the middle of a rule's command list! Dummies. |
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1706
diff
changeset
|
71 |
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1706
diff
changeset
|
72 ### The flags for optimization and debugging depend on the |
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1706
diff
changeset
|
73 ### system, so take an ordinary CFLAGS value and choose the |
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1706
diff
changeset
|
74 ### appropriate CPP symbols to use in ymakefile. |
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1706
diff
changeset
|
75 ### If you have a problem with cc -E here, changing |
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1706
diff
changeset
|
76 ### the definition of CPP above may fix it. |
3464
0d4f6d14bca1
(xmakefile): Depend on ../config.status.
Richard M. Stallman <rms@gnu.org>
parents:
3328
diff
changeset
|
77 |
0d4f6d14bca1
(xmakefile): Depend on ../config.status.
Richard M. Stallman <rms@gnu.org>
parents:
3328
diff
changeset
|
78 # Remake xmakefile whenever we reconfigure even if config.h didn't change. |
0d4f6d14bca1
(xmakefile): Depend on ../config.status.
Richard M. Stallman <rms@gnu.org>
parents:
3328
diff
changeset
|
79 xmakefile: ymakefile config.h ../config.status |
732 | 80 -rm -f xmakefile xmakefile.new junk.c junk.cpp |
2816
7c0be881a633
Install David Mackenzie's patches to make ${srcdir} work.
Jim Blandy <jimb@redhat.com>
parents:
2720
diff
changeset
|
81 cp ${srcdir}/ymakefile junk.c |
3570
8324ae8fe473
* ymakefile (C_DEBUG_SWITCH, C_OPTIMIZE_SWITCH): Remove these;
Jim Blandy <jimb@redhat.com>
parents:
3464
diff
changeset
|
82 ${CPP} -I${srcdir} ${CFLAGS} junk.c > junk.cpp |
732 | 83 < junk.cpp \ |
84 sed -e 's/^#.*//' \ | |
85 -e 's/^[ \f\t][ \f\t]*$$//' \ | |
86 -e 's/^ / /' \ | |
2816
7c0be881a633
Install David Mackenzie's patches to make ${srcdir} work.
Jim Blandy <jimb@redhat.com>
parents:
2720
diff
changeset
|
87 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \ |
7c0be881a633
Install David Mackenzie's patches to make ${srcdir} work.
Jim Blandy <jimb@redhat.com>
parents:
2720
diff
changeset
|
88 -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'|' \ |
732 | 89 | sed -n -e '/^..*$$/p' \ |
90 > xmakefile.new | |
91 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
|
92 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
|
93 rm -f junk.c junk.cpp |
33 | 94 |
2506 | 95 tagsfiles = [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.el |
1694
ca439341a0e5
(tagsfiles): New variable.
Roland McGrath <roland@gnu.org>
parents:
1677
diff
changeset
|
96 TAGS: $(tagsfiles) |
ca439341a0e5
(tagsfiles): New variable.
Roland McGrath <roland@gnu.org>
parents:
1677
diff
changeset
|
97 etags $(tagsfiles) |
ca439341a0e5
(tagsfiles): New variable.
Roland McGrath <roland@gnu.org>
parents:
1677
diff
changeset
|
98 tags: TAGS |
ca439341a0e5
(tagsfiles): New variable.
Roland McGrath <roland@gnu.org>
parents:
1677
diff
changeset
|
99 .PHONY: tags |