SUBDIR = lib-src src
# The makefiles of the directories in $SUBDIR.
-SUBDIR_MAKEFILES = lib-src/Makefile src/Makefile oldXMenu/Makefile lwlib/Makefile
+SUBDIR_MAKEFILES = lib-src/Makefile man/Makefile src/Makefile oldXMenu/Makefile lwlib/Makefile
# Subdirectories to install, and where they'll go.
# lib-src's makefile knows how to install it, so we don't do that here.
removenullpaths=sed -e 's/^://g' -e 's/:$$//g' -e 's/::/:/g'
# Note that sed is not in /bin on 386bsd.
-src/paths.h: Makefile ${srcdir}/src/paths.h.in
- @echo "Producing \`src/paths.h' from \`src/paths.h.in'."
+src/paths.h: Makefile ${srcdir}/src/paths.in
+ @echo "Producing \`src/paths.h' from \`src/paths.in'."
@(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \
buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \
- sed < ${srcdir}/src/paths.h.in > paths.h.tmp$$$$ \
+ sed < ${srcdir}/src/paths.in > paths.h.tmp$$$$ \
-e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \
-e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \
-e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \
# that rule and this one, in a parallel make.
# It is possible for paths.h to be updated twice--but that would happen anyway.
paths-force: FRC src/paths.h
- @echo "Producing \`src/paths.h' from \`src/paths.h.in'."
+ @echo "Producing \`src/paths.h' from \`src/paths.in'."
@(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \
buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \
- sed < ${srcdir}/src/paths.h.in > paths.h.tmp$$$$ \
+ sed < ${srcdir}/src/paths.in > paths.h.tmp$$$$ \
-e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \
-e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \
-e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \
Makefile: Makefile.in config.status
./config.status
-src/Makefile: src/Makefile.in.in config.status
+src/Makefile: src/Makefile.in config.status
./config.status
lib-src/Makefile: lib-src/Makefile.in config.status
### Note that we copy the DOC-* files from the build etc directory
### as well as lots of things from ${srcdir}/etc.
+### Note that we copy DOC* and then delete DOC
+### as a workaround for a bug in tar on Ultrix 4.2.
-# These lines appeared after the second -set, but should be unnecessary.
-# mkdir ${COPYDESTS} ; \
-# chmod ugo+rx ${COPYDESTS} ; \
-# The backslash above continues the comment onto this line. It ends here.
install-arch-indep: mkdir
-set ${COPYDESTS} ; \
for dir in ${COPYDIR} ; do \
shift ; \
done
-set ${COPYDESTS} ; \
+ mkdir ${COPYDESTS} ; \
+ chmod ugo+rx ${COPYDESTS} ; \
for dir in ${COPYDIR} ; do \
dest=$$1 ; shift ; \
[ -d $${dir} ] \
rm -rf $${subdir}/RCS ; \
rm -rf $${subdir}/CVS ; \
rm -f $${subdir}/\#* ; \
+ rm -f $${subdir}/.\#* ; \
rm -f $${subdir}/*~ ; \
rm -f $${subdir}/*.orig ; \
done) ; \
done
-rm -f ${lispdir}/subdirs.el
- ./update-subdirs ${lispdir}
+ $(srcdir)/update-subdirs ${lispdir}
if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \
then \
echo "Copying etc/DOC-* ..." ; \
- (cd etc; tar -cf - DOC-*)|(cd ${docdir}; umask 0; tar -xvf - ); \
+ (cd etc; tar -cf - DOC*)|(cd ${docdir}; umask 0; tar -xvf - ); \
+ (cd $(docdir); rm DOC) \
else true; fi
thisdir=`/bin/pwd`; \
if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \
if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \
(cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir); \
fi ; \
- for f in cl* dired-x* emacs* forms* gnus* info* sc* vip* ; do \
+ for f in cl* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip*; do \
(cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f); \
done); \
else true; fi
$(srcdir)/mkinstalldirs ${COPYDESTS} ${lockdir} ${infodir} ${mandir} \
${bindir} ${datadir} ${docdir} ${libexecdir} \
`echo ${locallisppath} | sed 's/:/ /g'`
- -chmod 777 ${lockdir}
+ -chmod a+rwx ${lockdir}
### Delete all the installed files that the `install' target would
### create (but not the noninstalled files such as `make all' would
esac ; \
fi ; \
done
- (cd ${infodir} && rm -f cl* emacs* forms* info* vip*)
+ (cd ${infodir} && rm -f cl* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip*)
(cd ${mandir} && rm -f emacs.1 etags.1 ctags.1)
(cd ${bindir} && rm -f emacs-${version} $(EMACS))
### `make distclean' should leave only the files that were in the
### distribution.
top_distclean=\
- rm -f config.status ; \
+ rm -f config.status config.cache config.log ; \
rm -f Makefile ${SUBDIR_MAKEFILES} ; \
(cd lock && rm -f *)
distclean: FRC
@echo "We don't have any tests for GNU Emacs yet."
dist:
- ./update-subdirs ${srcdir}/lisp
+ $(srcdir)/update-subdirs ${srcdir}/lisp
cd ${srcdir}; make-dist
.PHONY: info dvi dist check