25 |
# root for the installation, eg /usr/local |
# root for the installation, eg /usr/local |
26 |
# This would cause make install to create /usr/local/bin/gcl and |
# This would cause make install to create /usr/local/bin/gcl and |
27 |
# /usr/local/lib/gcl-2-??/* with some basic files. |
# /usr/local/lib/gcl-2-??/* with some basic files. |
28 |
prefix=/usr/local |
prefix=/usr |
29 |
|
|
30 |
# where to place the info files |
# where to place the info files |
31 |
INFO_DIR=/usr/info/ |
INFO_DIR=/usr/info/ |
182 |
LISP_LIB=cmpnew/collectfn.o lsp/gprof.lsp lsp/info.o lsp/profile.lsp gcl-tk/tkl.o gcl-tk/tinfo.o gcl-tk/decode.tcl gcl-tk/demos/*.lsp gcl-tk/demos/*.lisp gcl-tk/demos/*.o $(RL_LIB) |
LISP_LIB=cmpnew/collectfn.o lsp/gprof.lsp lsp/info.o lsp/profile.lsp gcl-tk/tkl.o gcl-tk/tinfo.o gcl-tk/decode.tcl gcl-tk/demos/*.lsp gcl-tk/demos/*.lisp gcl-tk/demos/*.o $(RL_LIB) |
183 |
|
|
184 |
install-command: |
install-command: |
185 |
rm -f ${prefix}/bin/gcl |
rm -f $(DESTDIR)${prefix}/bin/gcl |
186 |
(echo "#!/bin/sh" ; \ |
(echo "#!/bin/sh" ; \ |
187 |
echo exec ${INSTALL_LIB_DIR}/unixport/saved_gcl \\ ; \ |
echo exec ${INSTALL_LIB_DIR}/unixport/saved_gcl \\ ; \ |
188 |
echo ' -dir' ${INSTALL_LIB_DIR}/unixport/ \\ ; \ |
echo ' -dir' ${INSTALL_LIB_DIR}/unixport/ \\ ; \ |
189 |
echo ' -libdir' ${INSTALL_LIB_DIR}/ \\ ; \ |
echo ' -libdir' ${INSTALL_LIB_DIR}/ \\ ; \ |
190 |
echo ' -eval '\''(setq si::*allow-gzipped-file* t)'\' \\ ;\ |
echo ' -eval '\''(setq si::*allow-gzipped-file* t)'\' \\ ;\ |
191 |
echo ' -eval '\''(setq si::*tk-library* '\"${TK_LIBRARY}\"')'\' \\;\ |
! [ -d "${TK_CONFIG_PREFIX}" ] || echo ' -eval '\''(setq si::*tk-library* '\"${TK_LIBRARY}\"')'\' \\;\ |
192 |
echo ' '\"\$$@\" ) > ${prefix}/bin/gcl; |
[ "$(RL_OBJS)" = "" ] || echo ' -eval '\''(si::init-readline)'\' \\;\ |
193 |
echo '#' other options: -load "/tmp/foo.o" -load "jo.lsp" -eval '"(joe 3)"' >> ${prefix}/bin/gcl |
echo ' '\"\$$@\" ) > $(DESTDIR)${prefix}/bin/gcl; |
194 |
chmod a+x ${prefix}/bin/gcl |
echo '#' other options: -load "/tmp/foo.o" -load "jo.lsp" -eval '"(joe 3)"' >> $(DESTDIR)${prefix}/bin/gcl |
195 |
|
chmod a+x $(DESTDIR)${prefix}/bin/gcl |
196 |
|
|
197 |
install: |
install: |
198 |
make install1 "INSTALL_LIB_DIR=${prefix}/lib/gcl-`cat majvers`.`cat minvers`" "prefix=${prefix}" |
make install1 "INSTALL_LIB_DIR=${prefix}/lib/gcl-`cat majvers`.`cat minvers`" "prefix=${prefix}" DESTDIR=$(DESTDIR) |
199 |
INSTALL_LIB_DIR= |
INSTALL_LIB_DIR= |
200 |
install1: |
install1: |
201 |
-if [ -d "${prefix}/lib" ] ;then true; else mkdir ${prefix}/lib ; fi |
mkdir -p $(DESTDIR)${prefix}/lib |
202 |
-if [ -d "${prefix}/bin" ] ;then true; else mkdir ${prefix}/bin ; fi |
mkdir -p $(DESTDIR)${prefix}/bin |
203 |
-if [ -d "${INSTALL_LIB_DIR}" ] ; then true; else mkdir ${INSTALL_LIB_DIR} ;fi |
mkdir -p $(DESTDIR)${INSTALL_LIB_DIR} |
204 |
make install-command "INSTALL_LIB_DIR=${INSTALL_LIB_DIR}" "prefix=${prefix}" |
make install-command "INSTALL_LIB_DIR=${INSTALL_LIB_DIR}" "prefix=${prefix}" DESTDIR=$(DESTDIR) |
205 |
rm -f ${prefix}/bin/gcl.exe |
rm -f $(DESTDIR)${prefix}/bin/gcl.exe |
206 |
tar cvf - unixport/saved_gcl info/*info* doc/*.el ${LISP_LIB} \ |
tar cf - unixport/saved_gcl info/*.info* ${LISP_LIB} \ |
207 |
gcl-tk/gcl.tcl gcl-tk/gcltkaux | (cd ${INSTALL_LIB_DIR} ;tar xvf -) |
gcl-tk/gcl.tcl gcl-tk/gcltkaux | (cd $(DESTDIR)${INSTALL_LIB_DIR} ;tar xf -) |
208 |
ln ${SYMB} ${INSTALL_LIB_DIR}/unixport/saved_gcl \ |
ln ${SYMB} ${INSTALL_LIB_DIR}/unixport/saved_gcl \ |
209 |
${prefix}/bin/gcl.exe |
$(DESTDIR)${prefix}/bin/gcl.exe |
210 |
-cat gcl-tk/gcltksrv | \ |
if [ -d "${TK_CONFIG_PREFIX}" ] ; then \ |
211 |
|
cat gcl-tk/gcltksrv | \ |
212 |
sed -e "s:GCL_TK_DIR=.*:GCL_TK_DIR=${INSTALL_LIB_DIR}/gcl-tk:g" \ |
sed -e "s:GCL_TK_DIR=.*:GCL_TK_DIR=${INSTALL_LIB_DIR}/gcl-tk:g" \ |
213 |
-e "s:TK_LIBRARY=.*:TK_LIBRARY=${TK_LIBRARY}:g" > \ |
-e "s:TK_LIBRARY=.*:TK_LIBRARY=${TK_LIBRARY}:g" > \ |
214 |
${INSTALL_LIB_DIR}/gcl-tk/gcltksrv |
$(DESTDIR)${INSTALL_LIB_DIR}/gcl-tk/gcltksrv ; \ |
215 |
-if [ -d "${TK_CONFIG_PREFIX}" ] ; then \ |
chmod a+x $(DESTDIR)${INSTALL_LIB_DIR}/gcl-tk/gcltksrv ; fi |
216 |
chmod a+x ${INSTALL_LIB_DIR}/gcl-tk/gcltksrv ; fi |
if [ -d "${TK_CONFIG_PREFIX}" ] ; then \ |
217 |
-if [ -d "${TK_CONFIG_PREFIX}" ] ; then \ |
(cd $(DESTDIR)${INSTALL_LIB_DIR}/gcl-tk/demos ; \ |
218 |
(cd ${INSTALL_LIB_DIR}/gcl-tk/demos ; \ |
echo '(load "../tkl.o")(TK::GET-AUTOLOADS (directory "*.lisp"))' | ../../unixport/saved_gcl) ; fi |
219 |
echo '(load "../tkl.o")(TK::GET-AUTOLOADS (directory "*.lisp"))' | ${prefix}/bin/gcl) ; fi |
(cd elisp ; make install DESTDIR=$(DESTDIR)) |
220 |
(cd elisp ; make install) |
(cd info ; make ; make install DESTDIR=$(DESTDIR)) |
|
(cd info ; make ; make install) |
|
221 |
|
|
222 |
clean: |
clean: |
223 |
(cd $(BINDIR); make clean) |
(cd $(BINDIR); make clean) |
231 |
(cd info ; make clean) |
(cd info ; make clean) |
232 |
rm -f foo.tcl config.log makedefs makedefsafter config.cache config.status makedefc |
rm -f foo.tcl config.log makedefs makedefsafter config.cache config.status makedefc |
233 |
rm -f h/config.h h/gclincl.h h/cmpinclude.h |
rm -f h/config.h h/gclincl.h h/cmpinclude.h |
234 |
rm -rf gmp/.deps |
rm -rf gmp/.deps gmp/libgmp.a |
235 |
|
|
236 |
CMPINCLUDE_FILES=${HDIR}cmpincl1.h ${HDIR}gclincl.h ${HDIR}compbas.h ${HDIR}enum.h ${HDIR}object.h ${HDIR}vs.h \ |
CMPINCLUDE_FILES=${HDIR}cmpincl1.h ${HDIR}gclincl.h ${HDIR}compbas.h ${HDIR}enum.h ${HDIR}object.h ${HDIR}vs.h \ |
237 |
${HDIR}bds.h ${HDIR}frame.h \ |
${HDIR}bds.h ${HDIR}frame.h \ |