annotate lib-src/Makefile.in @ 2348:581cda633215

Added a (provide 'emacsbug); lisp-mnt.el needs this.
author Eric S. Raymond <esr@snark.thyrsus.com>
date Thu, 25 Mar 1993 01:47:39 +0000
parents 7afd5e41ed30
children a0505f85e69d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1 # DIST: This is the distribution Makefile for Emacs. configure can
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2 # DIST: make most of the changes to this file you might want, so try
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3 # DIST: that first.
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5 # add -DUSG for SysV movemail and timer
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
6 # For Xenix, add the following for movemail:
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
7 # LOADLIBES= -lx
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
8 # For Mips, the following is needed for who knows what.
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
9 # LOADLIBES = -lmld /usr/bsd43/usr/lib/libc.a
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
10
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
11 # Avoid trouble on systems where the `SHELL' variable might be
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
12 # inherited from the environment.
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
13 SHELL = /bin/sh
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
14
1675
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
15 # ==================== Things `configure' might edit ====================
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
16
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
17 CC=cc
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
18 CONFIG_CFLAGS=-g
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
19 LOADLIBES=
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
20 version=version-not-set
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
21 configname=configuration-name-not-set
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
22
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
23 # ==================== Where To Install Things ====================
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
24
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
25 # The default location for installation. Everything is placed in
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
26 # subdirectories of this directory. The default values for many of
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
27 # the variables below are expressed in terms of this one, so you may
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
28 # not need to change them.
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
29 prefix=/usr/local
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
30
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
31 # Like `prefix', but used for architecture-specific files.
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
32 exec_prefix=${prefix}
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
33
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
34 # Where to install Emacs and other binaries that people will want to
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
35 # run directly (like etags).
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
36 bindir=${exec_prefix}/bin
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
37
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
38 # Where to install and expect executable files to be run by Emacs
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
39 # rather than directly by users, and other architecture-dependent
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
40 # data. ${archlibdir} is usually below this.
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
41 libdir=${exec_prefix}/lib
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
42
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
43 # Where to find the source code - setting this to anything but
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
44 # . doesn't work yet. The source code for Emacs's C kernel is
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
45 # expected to be in ${srcdir}/src, and the source code for Emacs's
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
46 # utility programs is expected to be in ${srcdir}/lib-src. This is
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
47 # set by the configure script's `--srcdir' option.
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
48 srcdir=.
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
49
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
50 # ==================== Emacs-specific directories ====================
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
51
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
52 # These variables hold the values Emacs will actually use. They are
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
53 # based on the values of the standard Make variables above.
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
54
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
55 # Where to put executables to be run by Emacs rather than the user.
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
56 # This path usually includes the Emacs version and configuration name,
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
57 # so that multiple configurations for multiple versions of Emacs may
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
58 # be installed at once.
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
59 archlibdir=${libdir}/emacs/${version}/${configname}
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
60
2262
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
61 # ====================== Developer's configuration =======================
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
62
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
63 # The following assignments make sense if you're running Emacs on a single
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
64 # machine, one version at a time, and you want changes to the lisp and etc
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
65 # directories in the source tree to show up immediately in your working
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
66 # environment. It saves a great deal of disk space by not duplicating the
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
67 # lisp and etc directories.
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
68 #
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
69 # archlibdir=${srcdir}/bin
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
70
1675
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
71 # ==================== Utility Programs for the Build ====================
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
72
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
73 # Allow the user to specify the install program.
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
74 INSTALL = install
1675
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
75 INSTALLFLAGS = -c
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
76 INSTALL_PROGRAM = ${INSTALL}
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
77 INSTALL_DATA = ${INSTALL}
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
78
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
79 # ============================= Targets ==============================
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
80
1112
1dba066c1e0a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 999
diff changeset
81 # Things that a user might actually run, which should be installed in bindir.
2274
7afd5e41ed30 Teach it about the new user-runnable command rcs-checkin.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2262
diff changeset
82 INSTALLABLES = etags ctags emacsclient b2m rcs-checkin
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
83
1112
1dba066c1e0a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 999
diff changeset
84 # Things that Emacs runs internally, or during the build process,
1dba066c1e0a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 999
diff changeset
85 # which should not be installed in bindir.
1675
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
86 UTILITIES= test-distrib make-path wakeup make-docfile digest-doc sorted-doc \
1112
1dba066c1e0a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 999
diff changeset
87 movemail cvtmail fakemail yow env emacsserver hexl timer
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
88
1112
1dba066c1e0a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 999
diff changeset
89 # Like UTILITIES, but they're not system-dependent, and should not be
1dba066c1e0a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 999
diff changeset
90 # deleted by the distclean target.
1dba066c1e0a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 999
diff changeset
91 SCRIPTS= rcs2log vcdiff
1dba066c1e0a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 999
diff changeset
92
1dba066c1e0a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 999
diff changeset
93 EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS}
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
94
2262
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
95 SOURCES = COPYING ChangeLog Makefile.in README aixcc.lex emacs.csh \
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
96 makedoc.com *.[chy] rcs2log vcdiff
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
97
1675
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
98 ### We need to #define emacs to get the right versions of some files.
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
99 ### Some other files - those shared with other GNU utilities - need
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
100 ### HAVE_CONFIG_H #defined before they know they can take advantage of
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
101 ### the information in ../src/config.h.
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
102 CFLAGS=${CONFIG_CFLAGS} -Demacs -DHAVE_CONFIG_H -I../src
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
103
1675
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
104 all: ${EXECUTABLES}
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
105
1675
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
106 ### Install the internal utilities. Until they are installed, we can
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
107 ### just run them directly from lib-src.
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
108 ${archlibdir}: all
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
109 @echo
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
110 @echo "Installing utilities run internally by Emacs."
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
111 ./make-path ${archlibdir}
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
112 if [ `(cd ${archlibdir};/bin/pwd)` != `/bin/pwd` ]; then \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
113 for file in ${EXECUTABLES} ; do \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
114 cp $${file} ${archlibdir} ; \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
115 chmod 755 ${archlibdir}/$${file} ; \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
116 done ; \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
117 fi
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
118 @echo
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
119 @echo "Changing the owner and group of Emacs's utility programs to \`bin'."
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
120 @echo "(You may ignore errors here if you don't care about this.)"
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
121 -for file in ${EXECUTABLES} ; do \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
122 chgrp bin ${archlibdir}/$${file} ; \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
123 chown bin ${archlibdir}/$${file} ; \
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
124 done
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
125
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
126 # We don't need to install `wakeup' explicitly, because it will be copied when
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
127 # this whole directory is copied.
1675
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
128 install: ${archlibdir}
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
129 @echo
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
130 @echo "Installing utilities for users to run."
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
131 for file in emacsclient etags ctags b2m ; do \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
132 cp $${file} ${bindir}/$${file}.new ; \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
133 chmod 755 ${bindir}/$${file}.new ; \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
134 done
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
135 @echo
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
136 @echo "Changing the owner and group of utility programs to \`bin'."
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
137 @echo "(You may ignore errors here if you don't care about this.)"
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
138 -for file in emacsclient etags ctags b2m ; do \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
139 chgrp bin ${bindir}/$${file}.new ; \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
140 chown bin ${bindir}/$${file}.new ; \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
141 mv ${bindir}/$${file}.new ${bindir}/$${file} ; \
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
142 done
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
143
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
144 clean mostlyclean:
1112
1dba066c1e0a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 999
diff changeset
145 -rm -f ${INSTALLABLES} ${UTILITIES} core *.o
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
146
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
147 distclean:
1675
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
148 -rm -f ${INSTALLABLES} ${UTILITIES} ../etc/DOC* core *.o
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
149
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
150 realclean: distclean
1675
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
151 -rm TAGS aixcc.c
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
152
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
153 extraclean: realclean
2d6fee9f818d * Makefile.in (exec_prefix): New variable.
Jim Blandy <jimb@redhat.com>
parents: 1659
diff changeset
154 -rm -f *~ \#*
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
155
2262
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
156 unlock:
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
157 chmod u+w $(SOURCES)
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
158
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
159 relock:
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
160 chmod u-w $(SOURCES)
29579cd51981 Added unlock and relock.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 1675
diff changeset
161
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
162 # Test the contents of the directory.
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
163 check:
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
164 @echo "We don't have any tests for GNU Emacs yet."
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
165
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
166 TAGS: etags
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
167 etags *.[ch]
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
168
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
169 # This verifies that the non-ASCII characters in the file `testfile'
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
170 # have not been clobbered by whatever means were used to copy and
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
171 # distribute Emacs. If they were clobbered, all the .elc files were
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
172 # clobbered too.
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
173 test-distrib: test-distrib.c
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
174 $(CC) -o test-distrib test-distrib.c
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
175 ./test-distrib
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
176
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
177 GETOPTOBJS = getopt.o getopt1.o
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
178 GETOPTDEPS = $(GETOPTOBJS) getopt.h
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
179 getopt.o: getopt.c getopt.h
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
180 getopt1.o: getopt1.c getopt.h
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
181
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
182 etags: etags.c $(GETOPTDEPS)
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
183 $(CC) ${CFLAGS} -DETAGS etags.c $(GETOPTOBJS) $(LOADLIBES) -o etags
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
184
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
185 ctags: etags.c $(GETOPTDEPS)
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
186 $(CC) ${CFLAGS} -DCTAGS etags.c $(GETOPTOBJS) $(LOADLIBES) -o ctags
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
187
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
188 wakeup: wakeup.c
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
189 $(CC) ${CFLAGS} wakeup.c $(LOADLIBES) -o wakeup
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
190
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
191 make-docfile: make-docfile.c
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
192 $(CC) ${CFLAGS} make-docfile.c $(LOADLIBES) -o make-docfile
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
193
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
194 digest-doc: digest-doc.c
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
195 $(CC) ${CFLAGS} digest-doc.c $(LOADLIBES) -o digest-doc
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
196
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
197 sorted-doc: sorted-doc.c
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
198 $(CC) ${CFLAGS} sorted-doc.c $(LOADLIBES) -o sorted-doc
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
199
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 991
diff changeset
200 b2m: b2m.c ../src/config.h
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
201 $(CC) ${CFLAGS} b2m.c $(LOADLIBES) -o b2m
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
202
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
203 movemail: movemail.c ../src/config.h
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
204 $(CC) ${CFLAGS} movemail.c $(LOADLIBES) -o movemail
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
205
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
206 cvtmail: cvtmail.c
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
207 $(CC) ${CFLAGS} cvtmail.c $(LOADLIBES) -o cvtmail
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
208
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
209 fakemail: fakemail.c ../src/config.h
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
210 $(CC) ${CFLAGS} fakemail.c $(LOADLIBES) -o fakemail
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
211
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
212 yow: yow.c ../src/paths.h
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
213 $(CC) ${CFLAGS} yow.c $(LOADLIBES) -o yow
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
214
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
215 env: env.c ../src/config.h
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
216 $(CC) -DEMACS ${CFLAGS} env.c $(LOADLIBES) -o env
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
217
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
218 emacsserver: emacsserver.c ../src/config.h
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
219 $(CC) ${CFLAGS} emacsserver.c $(LOADLIBES) -o emacsserver
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
220
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
221 emacsclient: emacsclient.c ../src/config.h
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
222 $(CC) ${CFLAGS} emacsclient.c $(LOADLIBES) -o emacsclient
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
223
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
224 hexl: hexl.c
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
225 $(CC) ${CFLAGS} hexl.c $(LOADLIBES) -o hexl
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
226
1573
884891e455cf * Makefile.in (getdate.o): Added explicit target for this, so we
Jim Blandy <jimb@redhat.com>
parents: 1282
diff changeset
227 getdate.o: getdate.y ../src/config.h
884891e455cf * Makefile.in (getdate.o): Added explicit target for this, so we
Jim Blandy <jimb@redhat.com>
parents: 1282
diff changeset
228 ${YACC} ${YFLAGS} getdate.y
884891e455cf * Makefile.in (getdate.o): Added explicit target for this, so we
Jim Blandy <jimb@redhat.com>
parents: 1282
diff changeset
229 $(CC) $(CFLAGS) -c y.tab.c
884891e455cf * Makefile.in (getdate.o): Added explicit target for this, so we
Jim Blandy <jimb@redhat.com>
parents: 1282
diff changeset
230 mv y.tab.o getdate.o
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
231 timer: getdate.o timer.o
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 616
diff changeset
232 $(CC) $(CFLAGS) getdate.o timer.o -o timer
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
233
1659
59aca09e60f8 * Makefile.in (make-path): New target.
Jim Blandy <jimb@redhat.com>
parents: 1573
diff changeset
234 make-path: make-path.c
59aca09e60f8 * Makefile.in (make-path): New target.
Jim Blandy <jimb@redhat.com>
parents: 1573
diff changeset
235 $(CC) $(CFLAGS) make-path.c -o make-path
59aca09e60f8 * Makefile.in (make-path): New target.
Jim Blandy <jimb@redhat.com>
parents: 1573
diff changeset
236
616
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
237 # These are NOT included in INSTALLABLES or UTILITIES.
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
238 # See ../src/ymakefile.
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
239 emacstool: emacstool.c
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
240 $(CC) emacstool.c -o emacstool ${CFLAGS} \
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
241 -lsuntool -lsunwindow -lpixrect $(LOADLIBES)
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
242
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
243 # For SUN Japanese Language Environment
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
244 nemacstool: emacstool.c
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
245 $(CC) -o nemacstool -DJLE ${CFLAGS} emacstool.c \
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
246 -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES)
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
247
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
248 xvetool: emacstool.c
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
249 $(CC) -o xvetool -DXVIEW ${CFLAGS} emacstool.c \
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
250 -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
251 $(LOADLIBES)
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
252
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
253 xveterm: emacstool.c
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
254 $(CC) -o xveterm -DXVIEW -DTTERM ${CFLAGS} emacstool.c \
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
255 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
256 $(LOADLIBES)
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
257
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
258 aixcc: aixcc.c
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
259 $(CC) $(CFLAGS) -o aixcc aixcc.c
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
260
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
261 aixcc.c: aixcc.lex
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
262 lex aixcc.lex
3c1ffcac443f Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
263 mv lex.yy.c aixcc.c