🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98695

emacs-18.57/Makefile: make clean should call /bin/pwd, not pwd

#98695
From: John Interrante
Date: Sun, 10 Mar 1991 02:32
42 lines
1918 bytes
You've probably found this bug already, but here's a bug report just
in case.  On a SPARCstation 1 running SunOS 4.1:

1.  I put GNU Emacs' source tree in /usr/local/src/emacs-18.57.

2.  I edited LIBDIR in Makefile to make /usr/local/lib/emacs the place
    where etc, info, lisp, and lock are supposed to be installed.

3.  To save disk space, I made /usr/local/lib/emacs a symbolic link to
    /usr/local/src/emacs-18.57.

4.  "make install" omitted copying etc, info, and lisp to $(LIBDIR).

5.  However, "make clean" cleaned etc even though that resulted in
    $(LIBDIR)/etc also being cleaned.

This would not happen if "make clean" used /bin/pwd instead of the
Bourne shell's built-in pwd to check that the current directory and
$(LIBDIR) are different directories.

John Interrante
interran@lurch.stanford.edu

*** Makefile.save	Tue Nov 27 13:36:57 1990
--- Makefile	Sat Mar  9 17:45:10 1991
***************
*** 106,112 ****
  
  clean:
  	cd src; make clean
! 	if [ `pwd` != `(cd ${LIBDIR}; pwd)` ] ; then \
  		cd etc; make clean; \
  	else true; \
  	fi
--- 105,111 ----
  
  clean:
  	cd src; make clean
! 	if [ `/bin/pwd` != `(cd ${LIBDIR}; /bin/pwd)` ] ; then \
  		cd etc; make clean; \
  	else true; \
  	fi
Technical Details
Message-ID: <9103100232.AA15983@lurch.Stanford.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,e22f4f920b6cf0a9,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-03-09 22:28:19 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: interran@LURCH.STANFORD.EDU (John Interrante)
Newsgroups: gnu.emacs.bug
Subject: emacs-18.57/Makefile: make clean should call /bin/pwd, not pwd
Message-ID: <9103100232.AA15983@lurch.Stanford.EDU>
Date: 10 Mar 91 02:32:40 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 42
Approved: bug-gnu-emacs@prep.ai.mit.edu