Bug 644 - "make clean" fails when building outside of source tree
Summary: "make clean" fails when building outside of source tree
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: -current
Hardware: All All
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-17 10:24 AEST by Mark D. Roth
Modified: 2004-04-14 12:24 AEST (History)
1 user (show)

See Also:


Attachments
Fix "make clean" target (1.49 KB, patch)
2003-09-17 10:34 AEST, Darren Tucker
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark D. Roth 2003-09-17 10:24:27 AEST
Under OpenSSH-3.7.1p1, "make clean" fails with the following error when building
outside of the source tree:

roth@coredump:/scratch/os/obj> make clean
rm -f *.o *.a ssh sshd ssh-add ssh-keygen ssh-keyscan ssh-keysign ssh-agent scp
ssh-rand-helper sftp-server sftp logintest config.cache config.log 
rm -f *.out core 
(cd openbsd-compat && gmake clean)
gmake[1]: Entering directory `/services/scratch/os/obj/openbsd-compat'
rm -f *.o *.a core 
gmake[1]: Leaving directory `/services/scratch/os/obj/openbsd-compat'
(cd regress && gmake clean)
/bin/sh: regress: does not exist
gmake: *** [clean] Error 1

The problem seems to be that the "regress" subdirectory only exists in the
source tree, not the build tree.

This may also be a problem for the "distclean" target.
Comment 1 Darren Tucker 2003-09-17 10:34:17 AEST
Created attachment 403 [details]
Fix "make clean" target

Unfortunately the fix for this did not make the tree before 3.7
Comment 2 Darren Tucker 2003-09-22 11:00:43 AEST
Thanks for the report, the patch has been applied to HEAD and the 3.7 branch.
Comment 3 Damien Miller 2004-04-14 12:24:19 AEST
Mass change of RESOLVED bugs to CLOSED