comparison Makefile.in @ 604:63a8e7b3c547

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Wed, 01 Apr 1992 11:14:15 +0000
parents d02d6c2f7f80
children cde1f15848c6
comparison
equal deleted inserted replaced
603:470f556a9453 604:63a8e7b3c547
1 # This is the distribution Makefile for Emacs. config.emacs can make 1 # This is the distribution Makefile for Emacs. configure can make
2 # most of the changes to this file you might want, so try that first. 2 # most of the changes to this file you might want, so try that first.
3 3
4 # make all to compile and build Emacs 4 # make all to compile and build Emacs
5 # make install to install it 5 # make install to install it
6 # make install.sysv to install on system V. 6 # make install.sysv to install on system V.
22 # documentation tree, and the architecture-dependent and -independent 22 # documentation tree, and the architecture-dependent and -independent
23 # libraries. If this is not the directory we're building under 23 # libraries. If this is not the directory we're building under
24 # already, the `install' targets will move or copy it there. The 24 # already, the `install' targets will move or copy it there. The
25 # default definitions for the variables below are expressed in terms 25 # default definitions for the variables below are expressed in terms
26 # of this one, so you may not need to change them. 26 # of this one, so you may not need to change them.
27 LIBROOT=/gd/gnu/emacs 27 LIBROOT=/home/gd/gnu/emacs
28 28
29 # This is where the `install' make target should place the binaries 29 # This is where the `install' make target should place the binaries
30 # people will want to run directly (like etags and Emacs itself). 30 # people will want to run directly (like etags and Emacs itself).
31 INSTALLBIN=/usr/local/bin 31 INSTALLBIN=/usr/local/bin
32 32
33 # Emacs will search this path to find its elisp files. This should be 33 # Emacs will search this path to find its elisp files. This should be
34 # a colon-separated list of directories. Strictly speaking, all the 34 # a colon-separated list of directories. Strictly speaking, all the
35 # elisp files should go under DATADIR (below), since both elisp source 35 # elisp files should go under DATADIR (below), since both elisp source
36 # and compiled elisp are completely portable, but it's traditional to 36 # and compiled elisp are completely portable, but it's traditional to
37 # give the lisp files their own subdirectory. 37 # give the lisp files their own subdirectory.
38 LISPPATH=/gd/gnu/emacs/local-lisp:/gd/gnu/emacs/lisp 38 LISPPATH=/home/gd/gnu/emacs/local-lisp:/home/gd/gnu/emacs/lisp
39 39
40 # Emacs will look here for its architecture-independent files (like 40 # Emacs will look here for its architecture-independent files (like
41 # the tutorial and the zippy database). 41 # the tutorial and the zippy database).
42 DATADIR=/gd/gnu/emacs/share-lib 42 DATADIR=/home/gd/gnu/emacs/etc
43 43
44 # Emacs will look here for its architecture-dependent files, like 44 # Emacs will look here for its architecture-dependent files, like
45 # executables for its utilities. 45 # executables for its utilities.
46 LIBDIR=/gd/gnu/emacs/arch-lib 46 LIBDIR=/home/gd/gnu/emacs/arch-lib
47 47
48 # The locking directory, where the Emacs locking code keeps track of 48 # The locking directory, where the Emacs locking code keeps track of
49 # which files are currently being edited. 49 # which files are currently being edited.
50 LOCKDIR=/gd/gnu/emacs/lock 50 LOCKDIR=/home/gd/gnu/emacs/lock
51 51
52 # This is where the `install' make target should place the man pages 52 # This is where the `install' make target should place the man pages
53 # for the binaries it installs. 53 # for the binaries it installs.
54 MANDIR= /usr/man/man1 54 MANDIR= /usr/man/man1
55 55
62 # because the compiled lisp files are part of the distribution 62 # because the compiled lisp files are part of the distribution
63 # and you cannot remake them without installing Emacs first. 63 # and you cannot remake them without installing Emacs first.
64 SUBDIR= lib-src src 64 SUBDIR= lib-src src
65 65
66 # Subdirectories to install 66 # Subdirectories to install
67 COPYDIR= arch-lib share-lib info lisp 67 COPYDIR= arch-lib etc info lisp
68 68
69 # Subdirectories to clean 69 # Subdirectories to clean
70 CLEANDIR= ${COPYDIR} lisp/term 70 CLEANDIR= ${COPYDIR} lisp/term
71 71
72 all: src/paths.h ${SUBDIR} 72 all: src/paths.h ${SUBDIR}
74 src/paths.h: Makefile src/paths.h-dist 74 src/paths.h: Makefile src/paths.h-dist
75 /bin/sed < src/paths.h-dist > src/paths.h \ 75 /bin/sed < src/paths.h-dist > src/paths.h \
76 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "$(LISPPATH)";' \ 76 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "$(LISPPATH)";' \
77 -e 's;\(#.*PATH_EXEC\).*$$;\1 "$(LIBDIR)";' \ 77 -e 's;\(#.*PATH_EXEC\).*$$;\1 "$(LIBDIR)";' \
78 -e 's;\(#.*PATH_DATA\).*$$;\1 "$(DATADIR)";' \ 78 -e 's;\(#.*PATH_DATA\).*$$;\1 "$(DATADIR)";' \
79 -e 's;\(#.*LOCK\).*$$;\1 "$(LOCKDIR)/";' 79 -e 's;\(#.*PATH_LOCK\).*$$;\1 "$(LOCKDIR)/";' \
80 -e 's;\(#.*PATH_SUPERLOCK\).*$$;\1 "$(LOCKDIR)/!!!SuperLock!!!";'
80 81
81 src: lib-src 82 src: lib-src
82 83
83 .RECURSIVE: ${SUBDIR} 84 .RECURSIVE: ${SUBDIR}
84 85
97 fi 98 fi
98 install -c -s arch-lib/emacsclient ${INSTALLBIN}/emacsclient 99 install -c -s arch-lib/emacsclient ${INSTALLBIN}/emacsclient
99 install -c -s arch-lib/etags ${INSTALLBIN}/etags 100 install -c -s arch-lib/etags ${INSTALLBIN}/etags
100 install -c -s arch-lib/ctags ${INSTALLBIN}/ctags 101 install -c -s arch-lib/ctags ${INSTALLBIN}/ctags
101 install -c -s -m 1755 src/xemacs ${INSTALLBIN}/xemacs 102 install -c -s -m 1755 src/xemacs ${INSTALLBIN}/xemacs
102 install -c -m 444 share-lib/emacs.1 ${MANDIR}/emacs.1 103 install -c -m 444 etc/emacs.1 ${MANDIR}/emacs.1
103 -rm -f ${INSTALLBIN}/emacs 104 -rm -f ${INSTALLBIN}/emacs
104 mv ${INSTALLBIN}/xemacs ${INSTALLBIN}/emacs 105 mv ${INSTALLBIN}/xemacs ${INSTALLBIN}/emacs
105 106
106 install.sysv: all mkdir lockdir 107 install.sysv: all mkdir lockdir
107 -if [ `/bin/pwd` != `(cd ${LIBROOT}; /bin/pwd)` ] ; then \ 108 -if [ `/bin/pwd` != `(cd ${LIBROOT}; /bin/pwd)` ] ; then \
114 else true; \ 115 else true; \
115 fi 116 fi
116 -cpset arch-lib/emacsclient ${INSTALLBIN}/emacsclient 755 bin bin 117 -cpset arch-lib/emacsclient ${INSTALLBIN}/emacsclient 755 bin bin
117 -cpset arch-lib/etags ${INSTALLBIN}/etags 755 bin bin 118 -cpset arch-lib/etags ${INSTALLBIN}/etags 755 bin bin
118 -cpset arch-lib/ctags ${INSTALLBIN}/ctags 755 bin bin 119 -cpset arch-lib/ctags ${INSTALLBIN}/ctags 755 bin bin
119 -cpset share-lib/emacs.1 ${MANDIR}/emacs.1 444 bin bin 120 -cpset etc/emacs.1 ${MANDIR}/emacs.1 444 bin bin
120 -/bin/rm -f ${INSTALLBIN}/emacs 121 -/bin/rm -f ${INSTALLBIN}/emacs
121 -cpset src/xemacs ${INSTALLBIN}/emacs 1755 bin bin 122 -cpset src/xemacs ${INSTALLBIN}/emacs 1755 bin bin
122 123
123 install.xenix: all mkdir lockdir 124 install.xenix: all mkdir lockdir
124 if [ `pwd` != `(cd ${LIBROOT}; pwd)` ] ; then \ 125 if [ `pwd` != `(cd ${LIBROOT}; pwd)` ] ; then \
130 done \ 131 done \
131 else true; \ 132 else true; \
132 fi 133 fi
133 cp arch-lib/etags arch-lib/ctags arch-lib/emacsclient ${INSTALLBIN} 134 cp arch-lib/etags arch-lib/ctags arch-lib/emacsclient ${INSTALLBIN}
134 chmod 755 ${INSTALLBIN}/etags ${INSTALLBIN}/ctags ${INSTALLBIN}/emacsclient 135 chmod 755 ${INSTALLBIN}/etags ${INSTALLBIN}/ctags ${INSTALLBIN}/emacsclient
135 cp share-lib/emacs.1 ${MANDIR}/emacs.1 136 cp etc/emacs.1 ${MANDIR}/emacs.1
136 chmod 444 ${MANDIR}/emacs.1 137 chmod 444 ${MANDIR}/emacs.1
137 -mv -f ${INSTALLBIN}/emacs ${INSTALLBIN}/emacs.old 138 -mv -f ${INSTALLBIN}/emacs ${INSTALLBIN}/emacs.old
138 cp src/xemacs ${INSTALLBIN}/emacs 139 cp src/xemacs ${INSTALLBIN}/emacs
139 chmod 1755 ${INSTALLBIN}/emacs 140 chmod 1755 ${INSTALLBIN}/emacs
140 -rm -f ${INSTALLBIN}/emacs.old 141 -rm -f ${INSTALLBIN}/emacs.old