]> code.delx.au - gnu-emacs/blobdiff - Makefile.in
Rewrite as a minor mode.
[gnu-emacs] / Makefile.in
index e8f80270862df509f3b2b845d13168dac43342fa..7236014e39094a204bb386ac718326790556034a 100644 (file)
@@ -186,7 +186,7 @@ EMACS = emacs
 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.
@@ -201,11 +201,11 @@ all:      paths-force ${SUBDIR}
 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}";'               \
@@ -227,10 +227,10 @@ src/paths.h: Makefile ${srcdir}/src/paths.h.in
 # 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}";'               \
@@ -263,7 +263,7 @@ blessmail: ${SUBDIR_MAKEFILES} src FRC
 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
@@ -309,11 +309,9 @@ install-arch-dep: mkdir
 
 ### 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 \
@@ -323,6 +321,8 @@ install-arch-indep: mkdir
           shift ; \
         done
        -set ${COPYDESTS} ; \
+        mkdir ${COPYDESTS} ; \
+        chmod ugo+rx ${COPYDESTS} ; \
         for dir in ${COPYDIR} ; do \
           dest=$$1 ; shift ; \
           [ -d $${dir} ] \
@@ -333,16 +333,18 @@ install-arch-indep: mkdir
                 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)` ]; \
@@ -351,7 +353,7 @@ install-arch-indep: mkdir
           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
@@ -367,7 +369,7 @@ mkdir: FRC
        $(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
@@ -392,7 +394,7 @@ uninstall:
            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))
 
@@ -437,7 +439,7 @@ clean: FRC
 ###      `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
@@ -524,7 +526,7 @@ check:
        @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