[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I check if a directory exists?

From: Tristan Van Berkom
Subject: Re: How do I check if a directory exists?
Date: Mon, 08 Dec 2003 12:35:26 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

Jimmy DeWitt wrote:
        I have a make question:

How do I test if a directory exists with make?

I would like to have a Makefile that checks if a specific directory is there, if it
is I would like to cd to it and build .

if foo
        cd foo
        make -f my_makefile

Is there a way to do this without scripts?

Would this suite your purpose ?

target: my_dir/Makefile
        $(MAKE) -C my_dir


reply via email to

[Prev in Thread] Current Thread [Next in Thread]