Mercurial > emacs
comparison Makefile.in @ 617:cde1f15848c6
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sun, 19 Apr 1992 08:53:55 +0000 |
parents | 63a8e7b3c547 |
children | eca8812e61cd |
comparison
equal
deleted
inserted
replaced
616:3c1ffcac443f | 617:cde1f15848c6 |
---|---|
1 # This is the distribution Makefile for Emacs. configure can make | 1 # DIST: This is the distribution Makefile for Emacs. configure can |
2 # most of the changes to this file you might want, so try that first. | 2 # DIST: make most of the changes to this file you might want, so try |
3 | 3 # DIST: that first. |
4 # make all to compile and build Emacs | 4 |
5 # make install to install it | 5 # make all to compile and build Emacs. |
6 # make install.sysv to install on system V. | 6 # make install to install it. |
7 # make install.xenix to install on Xenix | 7 # make install.sysv to install on system V. Note that on system V you |
8 # must change mandir to /usr/local/man/man1. | |
9 # make install.xenix to install on Xenix. | |
8 # make install.aix to install on AIX. | 10 # make install.aix to install on AIX. |
9 # make tags to update tags tables | 11 # make tags to update tags tables. |
10 # | 12 # |
11 # make distclean to delete everything that wasn't in the distribution | 13 # make distclean to delete everything that wasn't in the distribution. |
12 # This is a very dangerous thing to do! | 14 # This is a very dangerous thing to do! |
13 # make clean | 15 # make clean |
14 # This is a little less dangerous. | 16 # This is a little less dangerous. |
15 | 17 |
16 SHELL = /bin/sh | 18 SHELL = /bin/sh |
17 | 19 |
18 # ==================== Where to install things ==================== | 20 # ==================== Where To Install Things ==================== |
19 # Note that on system V you must change MANDIR to /usr/local/man/man1. | 21 |
20 | 22 # The default location for installation. Everything is placed in |
21 # Where to install all of Emacs's data files - the lisp code, | 23 # subdirectories of this directory. This directory must exist when |
22 # documentation tree, and the architecture-dependent and -independent | 24 # you start installation. The default values for many of the |
23 # libraries. If this is not the directory we're building under | 25 # variables below are expressed in terms of this one, so you may not |
24 # already, the `install' targets will move or copy it there. The | 26 # need to change them. |
25 # default definitions for the variables below are expressed in terms | 27 prefix=/usr/local |
26 # of this one, so you may not need to change them. | 28 |
27 LIBROOT=/home/gd/gnu/emacs | 29 # Where to install Emacs and other binaries that people will want to |
28 | 30 # run directly (like etags). |
29 # This is where the `install' make target should place the binaries | 31 bindir=$(prefix)/bin |
30 # people will want to run directly (like etags and Emacs itself). | 32 |
31 INSTALLBIN=/usr/local/bin | 33 # A directory under which we will install many of Emacs's files. The |
32 | 34 # default values for many of the variables below are expressed in |
33 # Emacs will search this path to find its elisp files. This should be | 35 # terms of this one, so you may not need to change them. |
34 # a colon-separated list of directories. Strictly speaking, all the | 36 emacsdir=$(prefix)/emacs-19.0 |
35 # elisp files should go under DATADIR (below), since both elisp source | 37 |
36 # and compiled elisp are completely portable, but it's traditional to | 38 # Where to install and expect the architecture-independent data files |
37 # give the lisp files their own subdirectory. | 39 # (like the tutorial and the Zippy database). |
38 LISPPATH=/home/gd/gnu/emacs/local-lisp:/home/gd/gnu/emacs/lisp | 40 datadir=$(emacsdir)/etc |
39 | 41 |
40 # Emacs will look here for its architecture-independent files (like | 42 # Where to install the elisp files distributed with Emacs. Strictly |
41 # the tutorial and the zippy database). | 43 # speaking, all the elisp files should go under datadir (above), since |
42 DATADIR=/home/gd/gnu/emacs/etc | 44 # both elisp source and compiled elisp are completely portable, but |
43 | 45 # it's traditional to give the lisp files their own subdirectory. |
44 # Emacs will look here for its architecture-dependent files, like | 46 lispdir=$(emacsdir)/lisp |
45 # executables for its utilities. | 47 |
46 LIBDIR=/home/gd/gnu/emacs/arch-lib | 48 # Directories Emacs should search for elisp files specific to this |
47 | 49 # site (i.e. customizations), before consulting $(lispdir). This |
48 # The locking directory, where the Emacs locking code keeps track of | 50 # should be a colon-separated list of directories. |
49 # which files are currently being edited. | 51 locallisppath=$(emacsdir)/local-lisp |
50 LOCKDIR=/home/gd/gnu/emacs/lock | 52 |
51 | 53 # Where Emacs will search to find its elisp files. Before changing |
52 # This is where the `install' make target should place the man pages | 54 # this, check to see if your purpose wouldn't better be served by |
53 # for the binaries it installs. | 55 # changing locallisppath. This should be a colon-separated list of |
54 MANDIR= /usr/man/man1 | 56 # directories. |
55 | 57 lisppath=$(locallisppath):$(lispdir) |
56 | 58 |
59 # Where Emacs will search for its elisp files before dumping. This is | |
60 # only used during the process of compiling Emacs, to help Emacs find | |
61 # its lisp files before they've been installed in their final | |
62 # location. It's usually identical to lisppath, except that the entry | |
63 # for the directory containing the installed lisp files has been | |
64 # replaced with ../lisp. This should be a colon-separated list of | |
65 # directories. | |
66 dumplisppath=$(locallisppath):../lisp | |
67 | |
68 # Where to install and expect the files that Emacs modifies as it | |
69 # runs. These files are all architecture-independent. Right now, | |
70 # the only such data is the locking directory. | |
71 statedir=$(emacsdir) | |
72 | |
73 # Where to create and expect the locking directory, where the Emacs | |
74 # locking code keeps track of which files are currently being edited. | |
75 lockdir=$(statedir)/lock | |
76 | |
77 # Where to install and expect executable files to be run by Emacs | |
78 # rather than directly by users, and other architecture-dependent | |
79 # data. | |
80 libdir=$(emacsdir)/arch-lib | |
81 | |
82 # Where to install Emacs's man pages. | |
83 mandir=/usr/man/man1 | |
84 | |
85 # Where to install and expect the info files describing Emacs. In the | |
86 # past, this defaulted to a subdirectory of $(prefix)/lib/emacs, but | |
87 # since there are now many packages documented with the texinfo | |
88 # system, it is inappropriate to imply that it is part of Emacs. | |
89 infodir=$(prefix)/info | |
90 | |
91 | |
92 # ==================== Utility Programs for the Build ==================== | |
93 | |
94 # Allow the user to specify the install program. | |
95 INSTALL = install | |
96 INSTALLFLAGS = -c | |
97 INSTALL_PROGRAM = ${INSTALL} | |
98 INSTALL_DATA = ${INSTALL} | |
99 | |
100 | |
101 # ============================= Targets ============================== | |
57 | 102 |
58 # Flags passed down to subdirectory makefiles. | 103 # Flags passed down to subdirectory makefiles. |
59 MFLAGS= | 104 MFLAGS = |
60 | 105 |
61 # Subdirectories to make recursively. `lisp' is not included | 106 # Subdirectories to make recursively. `lisp' is not included |
62 # because the compiled lisp files are part of the distribution | 107 # because the compiled lisp files are part of the distribution |
63 # and you cannot remake them without installing Emacs first. | 108 # and you cannot remake them without installing Emacs first. |
64 SUBDIR= lib-src src | 109 SUBDIR = lib-src src |
65 | 110 |
66 # Subdirectories to install | 111 # Subdirectories to install, and where they'll go. |
67 COPYDIR= arch-lib etc info lisp | 112 COPYDIR = arch-lib etc info lisp |
68 | 113 COPYDESTS = $(libdir) $(datadir) $(infodir) $(lispdir) |
69 # Subdirectories to clean | |
70 CLEANDIR= ${COPYDIR} lisp/term | |
71 | 114 |
72 all: src/paths.h ${SUBDIR} | 115 all: src/paths.h ${SUBDIR} |
73 | 116 |
74 src/paths.h: Makefile src/paths.h-dist | 117 removenullpaths=sed -e 's/^://' -e 's/:$$//' -e 's/::/:/' |
75 /bin/sed < src/paths.h-dist > src/paths.h \ | 118 |
76 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "$(LISPPATH)";' \ | 119 src/paths.h: Makefile src/paths.h.in |
77 -e 's;\(#.*PATH_EXEC\).*$$;\1 "$(LIBDIR)";' \ | 120 lisppath=`echo $(lisppath) | $(removenullpaths)` ; \ |
78 -e 's;\(#.*PATH_DATA\).*$$;\1 "$(DATADIR)";' \ | 121 dumplisppath=`echo $(dumplisppath) | $(removenullpaths)` ; \ |
79 -e 's;\(#.*PATH_LOCK\).*$$;\1 "$(LOCKDIR)/";' \ | 122 /bin/sed < src/paths.h.in > src/paths.h \ |
80 -e 's;\(#.*PATH_SUPERLOCK\).*$$;\1 "$(LOCKDIR)/!!!SuperLock!!!";' | 123 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \ |
124 -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${dumplisppath}'";' \ | |
125 -e 's;\(#.*PATH_EXEC\).*$$;\1 "$(libdir)";' \ | |
126 -e 's;\(#.*PATH_DATA\).*$$;\1 "$(datadir)";' \ | |
127 -e 's;\(#.*PATH_LOCK\).*$$;\1 "$(lockdir)/";' \ | |
128 -e 's;\(#.*PATH_SUPERLOCK\).*$$;\1 "$(lockdir)/!!!SuperLock!!!";' | |
81 | 129 |
82 src: lib-src | 130 src: lib-src |
83 | 131 |
84 .RECURSIVE: ${SUBDIR} | 132 .RECURSIVE: ${SUBDIR} |
85 | 133 |
86 ${SUBDIR}: FRC | 134 ${SUBDIR}: FRC |
87 cd $@; make ${MFLAGS} all | 135 cd $@; make ${MFLAGS} all |
88 | 136 |
89 install: all mkdir lockdir | 137 install: all mkdir lockdir |
90 -if [ `/bin/pwd` != `(cd ${LIBROOT}; /bin/pwd)` ] ; then \ | 138 -set ${COPYDESTS} ; \ |
91 tar cf - ${COPYDIR} | (cd ${LIBROOT}; umask 0; tar xf - ) ;\ | 139 for dir in ${COPYDIR} ; do \ |
92 for i in ${CLEANDIR}; do \ | 140 dest=$$1 ; shift ; \ |
93 (rm -rf ${LIBROOT}/$$i/RCS; \ | 141 if [ `/bin/pwd`/$${dir} != `(cd $${dest}; /bin/pwd)` ] ; then \ |
94 rm -f ${LIBROOT}/$$i/\#*; \ | 142 (cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xf - ) ; \ |
95 rm -f ${LIBROOT}/$$i/*~); \ | 143 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ |
96 done \ | 144 rm -rf $${subdir}/RCS ; \ |
145 rm -f $${subdir}/\#* ; \ | |
146 rm -f $${subdir}/*~ ; \ | |
147 done ; \ | |
148 fi ; \ | |
149 done | |
150 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -c arch-lib/emacsclient ${bindir}/emacsclient | |
151 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -c arch-lib/etags ${bindir}/etags | |
152 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -c arch-lib/ctags ${bindir}/ctags | |
153 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -c -m 1755 src/xemacs ${bindir}/xemacs | |
154 ${INSTALL_DATA} ${INSTALLFLAGS} -c -m 444 etc/emacs.1 ${mandir}/emacs.1 | |
155 -rm -f ${bindir}/emacs | |
156 mv ${bindir}/xemacs ${bindir}/emacs | |
157 | |
158 install.sysv: all mkdir lockdir | |
159 -set ${COPYDESTS} ; \ | |
160 for dir in ${COPYDIR} ; do \ | |
161 dest=$$1 ; shift ; \ | |
162 if [ `/bin/pwd`/$${dir} != `(cd $${dest}; /bin/pwd)` ] ; then \ | |
163 (cd $${dir}; find . -print | cpio -pdum ${dest} ) ; \ | |
164 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ | |
165 rm -rf $${subdir}/RCS ; \ | |
166 rm -f $${subdir}/\#* ; \ | |
167 rm -f $${subdir}/*~ ; \ | |
168 done ; \ | |
169 fi ; \ | |
170 done | |
171 -cpset arch-lib/emacsclient ${bindir}/emacsclient 755 bin bin | |
172 -cpset arch-lib/etags ${bindir}/etags 755 bin bin | |
173 -cpset arch-lib/ctags ${bindir}/ctags 755 bin bin | |
174 -cpset etc/emacs.1 ${mandir}/emacs.1 444 bin bin | |
175 -/bin/rm -f ${bindir}/emacs | |
176 -cpset src/xemacs ${bindir}/emacs 1755 bin bin | |
177 | |
178 install.xenix: all mkdir lockdir | |
179 -set ${COPYDESTS} ; \ | |
180 for dir in ${COPYDIR} ; do \ | |
181 dest=$$1 ; shift ; \ | |
182 if [ `/bin/pwd`/$${dir} != `(cd $${dest}; /bin/pwd)` ] ; then \ | |
183 (cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xpf - ) ; \ | |
184 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ | |
185 rm -rf $${subdir}/RCS ; \ | |
186 rm -f $${subdir}/\#* ; \ | |
187 rm -f $${subdir}/*~ ; \ | |
188 done ; \ | |
189 fi ; \ | |
190 done | |
191 cp arch-lib/etags arch-lib/ctags arch-lib/emacsclient ${bindir} | |
192 chmod 755 ${bindir}/etags ${bindir}/ctags ${bindir}/emacsclient | |
193 cp etc/emacs.1 ${mandir}/emacs.1 | |
194 chmod 444 ${mandir}/emacs.1 | |
195 -mv -f ${bindir}/emacs ${bindir}/emacs.old | |
196 cp src/xemacs ${bindir}/emacs | |
197 chmod 1755 ${bindir}/emacs | |
198 -rm -f ${bindir}/emacs.old | |
199 | |
200 install.aix: all mkdir lockdir | |
201 -set ${COPYDESTS} ; \ | |
202 for dir in ${COPYDIR} ; do \ | |
203 dest=$$1 ; shift ; \ | |
204 if [ `/bin/pwd`/$${dir} != `(cd $${dest}; /bin/pwd)` ] ; then \ | |
205 (cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xBf - ) ; \ | |
206 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ | |
207 rm -rf $${subdir}/RCS ; \ | |
208 rm -f $${subdir}/\#* ; \ | |
209 rm -f $${subdir}/*~ ; \ | |
210 done ; \ | |
211 fi ; \ | |
212 done | |
213 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -f ${bindir} etc/emacsclient | |
214 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -f ${bindir} etc/etags | |
215 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -f ${bindir} etc/ctags | |
216 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -M 1755 -f ${bindir} src/xemacs | |
217 ${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${mandir} etc/emacs.1 | |
218 -rm -f ${bindir}/emacs | |
219 mv ${bindir}/xemacs ${bindir}/emacs | |
220 | |
221 # Build all the directories | |
222 mkdir: FRC | |
223 # If any of the directories are below ${emacsdir}, create it. | |
224 -for dir in ${COPYDESTS}; do \ | |
225 case "$${dir}" in \ | |
226 ${emacsdir}/* ) \ | |
227 if [ ! -d ${emacsdir} ]; then \ | |
228 -mkdir ${emacsdir} ; \ | |
229 -chmod 777 ${emacsdir} ; \ | |
230 fi ; \ | |
231 break\ | |
232 ;; \ | |
233 esac ; \ | |
234 done | |
235 -mkdir ${COPYDESTS} | |
236 -chmod 777 ${COPYDESTS} | |
237 | |
238 lockdir: | |
239 # If the lockdir needs ${emacsdir}, create it. | |
240 -case "${lockdir}" in \ | |
241 ${statedir}/* ) \ | |
242 if [ ! -d ${emacsdir} ]; then \ | |
243 -mkdir ${emacsdir} ; \ | |
244 -chmod 777 ${emacsdir} ; \ | |
245 fi \ | |
246 ;; \ | |
247 esac | |
248 -mkdir ${LOCKDIR} | |
249 -chmod 777 ${LOCKDIR} | |
250 | |
251 FRC: | |
252 | |
253 clean mostlyclean: | |
254 cd src; make clean | |
255 if [ `/bin/pwd` != `(cd ${DESTDIR}${LIBDIR}; /bin/pwd)` ] ; then \ | |
256 cd etc; make clean; \ | |
97 else true; \ | 257 else true; \ |
98 fi | 258 fi |
99 install -c -s arch-lib/emacsclient ${INSTALLBIN}/emacsclient | 259 cd oldXMenu; make clean |
100 install -c -s arch-lib/etags ${INSTALLBIN}/etags | |
101 install -c -s arch-lib/ctags ${INSTALLBIN}/ctags | |
102 install -c -s -m 1755 src/xemacs ${INSTALLBIN}/xemacs | |
103 install -c -m 444 etc/emacs.1 ${MANDIR}/emacs.1 | |
104 -rm -f ${INSTALLBIN}/emacs | |
105 mv ${INSTALLBIN}/xemacs ${INSTALLBIN}/emacs | |
106 | |
107 install.sysv: all mkdir lockdir | |
108 -if [ `/bin/pwd` != `(cd ${LIBROOT}; /bin/pwd)` ] ; then \ | |
109 find ${COPYDIR} -print | cpio -pdum ${LIBROOT} ;\ | |
110 for i in ${CLEANDIR}; do \ | |
111 (rm -rf ${LIBROOT}/$$i/RCS; \ | |
112 rm -f ${LIBROOT}/$$i/\#*; \ | |
113 rm -f ${LIBROOT}/$$i/*~); \ | |
114 done \ | |
115 else true; \ | |
116 fi | |
117 -cpset arch-lib/emacsclient ${INSTALLBIN}/emacsclient 755 bin bin | |
118 -cpset arch-lib/etags ${INSTALLBIN}/etags 755 bin bin | |
119 -cpset arch-lib/ctags ${INSTALLBIN}/ctags 755 bin bin | |
120 -cpset etc/emacs.1 ${MANDIR}/emacs.1 444 bin bin | |
121 -/bin/rm -f ${INSTALLBIN}/emacs | |
122 -cpset src/xemacs ${INSTALLBIN}/emacs 1755 bin bin | |
123 | |
124 install.xenix: all mkdir lockdir | |
125 if [ `pwd` != `(cd ${LIBROOT}; pwd)` ] ; then \ | |
126 tar cf - ${COPYDIR} | (cd ${LIBROOT}; umask 0; tar xpf - ) ;\ | |
127 for i in ${CLEANDIR}; do \ | |
128 (rm -rf ${LIBROOT}/$$i/RCS; \ | |
129 rm -f ${LIBROOT}/$$i/\#*; \ | |
130 rm -f ${LIBROOT}/$$i/*~); \ | |
131 done \ | |
132 else true; \ | |
133 fi | |
134 cp arch-lib/etags arch-lib/ctags arch-lib/emacsclient ${INSTALLBIN} | |
135 chmod 755 ${INSTALLBIN}/etags ${INSTALLBIN}/ctags ${INSTALLBIN}/emacsclient | |
136 cp etc/emacs.1 ${MANDIR}/emacs.1 | |
137 chmod 444 ${MANDIR}/emacs.1 | |
138 -mv -f ${INSTALLBIN}/emacs ${INSTALLBIN}/emacs.old | |
139 cp src/xemacs ${INSTALLBIN}/emacs | |
140 chmod 1755 ${INSTALLBIN}/emacs | |
141 -rm -f ${INSTALLBIN}/emacs.old | |
142 | |
143 install.aix: all mkdir lockdir | |
144 -if [ `/bin/pwd` != `(cd ${LIBROOT}; /bin/pwd)` ] ; then \ | |
145 tar cf - ${COPYDIR} | (cd ${LIBROOT}; umask 0; tar xBf - ) ;\ | |
146 for i in ${CLEANDIR}; do \ | |
147 (rm -rf ${LIBROOT}/$$i/RCS; \ | |
148 rm -f ${LIBROOT}/$$i/\#*; \ | |
149 rm -f ${LIBROOT}/$$i/*~); \ | |
150 done \ | |
151 else true; \ | |
152 fi | |
153 install -f ${INSTALLBIN} etc/emacsclient | |
154 install -f ${INSTALLBIN} etc/etags | |
155 install -f ${INSTALLBIN} etc/ctags | |
156 install -M 1755 -f ${INSTALLBIN} src/xemacs | |
157 install -M 444 -f ${MANDIR} etc/emacs.1 | |
158 -rm -f ${INSTALLBIN}/emacs | |
159 mv ${INSTALLBIN}/xemacs ${INSTALLBIN}/emacs | |
160 | |
161 mkdir: FRC | |
162 -mkdir ${LIBROOT} | |
163 -chmod 777 ${LIBROOT} | |
164 | 260 |
165 distclean: | 261 distclean: |
166 for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} distclean); done | 262 for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} distclean); done |
167 | 263 -(cd lock; rm *) |
168 clean: | 264 -rm config.status config-tmp-* |
169 cd src; make clean | 265 -rm #*# *~ |
170 cd lib-src; make clean | 266 |
171 | 267 realclean: |
172 lockdir: | 268 for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} realclean); done |
173 -mkdir ${LOCKDIR} | 269 (cd lock; rm *) |
174 -chmod 777 ${LOCKDIR} | 270 rm config.status |
175 | 271 |
176 FRC: | 272 TAGS tags: lib-src |
177 | |
178 tags: lib-src | |
179 cd src; ../arch-lib/etags *.[ch] ../lisp/*.el ../lisp/term/*.el | 273 cd src; ../arch-lib/etags *.[ch] ../lisp/*.el ../lisp/term/*.el |
274 | |
275 check: | |
276 @echo "We don't have any tests for GNU Emacs yet." |