Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Feb 1996 14:02:15 -0500
From:      Mikhail Teterin <mi@ALDAN.star89.galstar.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/986: make or cd?
Message-ID:  <199602011902.OAA04131@aldan>
Resent-Message-ID: <199602011910.LAA19858@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         986
>Category:       bin
>Synopsis:       problems make-ing with cd in the rule
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb  1 11:10:01 PST 1996
>Last-Modified:
>Originator:     Mikhail Teterin
>Organization:
>Release:        FreeBSD 2.1-STABLE i386
>Environment:

	2.1 release, tcsh

>Description:

	Makefile (generated by xmkmf) has rule:
all::
        @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
        for i in $(SUBDIRS) ;\
        do \
        (cd $$i ; echo "making" all "in $(CURRENT_DIR)/$$i..."; \
        $(MAKE) $(MFLAGS)  all); \
        done

cd reportsi: can't cd to <Whatever> Make fails...

>How-To-Repeat:

	Never happened before... Don't know... Here is a script:

Script started on Thu Feb  1 13:45:59 1996
mi@aldan:~/knews (151) make Makefiles
making Makefiles in Widgets...
cd: can't cd to Widgets
making Makefiles in src...
cd: can't cd to src
making Makefiles in util...
cd: can't cd to util
mi@aldan:~/knews (152) cd Widgets
mi@aldan:~/knews/Widgets (153) ls
ArtText.c	KnappP.h	MenuP.h		ScrBar.h	TextFieldP.h
ArtText.h	Layout.c	Message.c	ScrBar.o	Toggle.c
	/ Few lines removed for shortness	-mi /
ArtText.o	Layout.h	Message.h	ScrBarP.h	Toggle.h
ArtTextP.h	Layout.o	Message.o	ScrList.c	Toggle.o
mi@aldan:~/knews/Widgets (154) exit
exit

Script done on Thu Feb  1 13:46:28 1996

>Fix:
	
	Putting full path instead of just $$i let me build, but
	`make Makefiles' still fails. Tried chdir instead of cd with
	no result...

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602011902.OAA04131>