]> code.delx.au - gnu-emacs/blobdiff - Makefile.in
(nnml-save-nov, nnml-generate-nov-file): Don't hardcode point-min == 1.
[gnu-emacs] / Makefile.in
index fad910c7e1e2db84fd079a37e84fabd4682d0780..f40277410b877ed4924be5eec1dda813dc03693a 100644 (file)
@@ -227,7 +227,7 @@ SUBDIR_MAKEFILES = lib-src/Makefile man/Makefile lispref/Makefile lispintro/Make
 COPYDIR = ${srcdir}/etc ${srcdir}/lisp
 COPYDESTS = ${etcdir} ${lispdir}
 
-all: maybe_bootstrap ${SUBDIR} leim
+all: ${SUBDIR} leim
 
 removenullpaths=sed -e 's/^://g' -e 's/:$$//g' -e 's/::/:/g'
 
@@ -262,7 +262,7 @@ lib-src: FRC src/config.stamp
 
 .RECURSIVE: ${SUBDIR} leim
 
-${SUBDIR}: ${SUBDIR_MAKEFILES} FRC
+${SUBDIR}: maybe_bootstrap ${SUBDIR_MAKEFILES} FRC
        cd $@; $(MAKE) all $(MFLAGS) \
          CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
          LDFLAGS='${LDFLAGS}' MAKE='${MAKE}'
@@ -377,6 +377,7 @@ install-arch-indep: mkdir info
              (cd $${dir}; tar -chf - . ) \
                | (cd $${dest}; umask 022; \
                    tar -xvf - && cat > /dev/null) || exit 1; \
+             find $${dest} -exec chown $$LOGNAME {} ';' ;\
              for subdir in `find $${dest} -type d ! -name RCS ! -name CVS -print` ; do \
                chmod a+rx $${subdir} ; \
                rm -rf $${subdir}/RCS ; \
@@ -414,8 +415,8 @@ install-arch-indep: mkdir info
        then \
           echo "Copying etc/DOC-* to ${docdir} ..." ; \
           (cd ./etc; tar -chf - DOC*) \
-            |(cd ${docdir}; umask 0; tar -xvf - && cat > /dev/null) || exit 1; \
-          (cd $(docdir); chmod a+r DOC*; rm DOC); \
+            |(cd ${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \
+          (cd $(docdir); chown $${LOGNAME} DOC*; chmod a+r DOC*; rm DOC); \
        else true; fi
        -unset CDPATH; \
        if [ -r ./lisp ] \
@@ -425,7 +426,8 @@ install-arch-indep: mkdir info
        then \
           echo "Copying lisp/*.el and lisp/*.elc to ${lispdir} ..." ; \
           (cd lisp; tar -chf - *.el *.elc) \
-            |(cd ${lispdir}; umask 0; tar -xvf - && cat > /dev/null) || exit 1; \
+            |(cd ${lispdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \
+          (cd ${lispdir}; find . -exec chown $${LOGNAME} {} ';') ; \
        else true; fi
        -unset CDPATH; \
        thisdir=`/bin/pwd`; \
@@ -692,11 +694,13 @@ dvi:
 .PHONY: maybe_bootstrap
 
 maybe_bootstrap:
-       if [ ! -f $(srcdir)/lisp/abbrev.elc ]; then \
-         $(MAKE) $(MFLAGS) bootstrap; \
+       @if [ ! -f $(srcdir)/lisp/abbrev.elc ]; then \
+         echo "Essential Lisp files seem to be missing.  You should either"; \
+         echo "do \`make bootstrap' or create \`lisp/abbrev.elc' somehow.";    \
+         exit 1;\
        fi
 
-bootstrap: boostrap-clean-before bootstrap-lisp-1 bootstrap-src bootstrap-lisp bootstrap-clean all info
+bootstrap: bootstrap-clean-before bootstrap-lisp-1 bootstrap-src bootstrap-lisp bootstrap-clean-after all info
 
 bootstrap-lisp-1:
        (cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean)