info-cvs
[Top][All Lists]
Advanced

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

how to checkout a specific file from a Makefile


From: Bram Moolenaar
Subject: how to checkout a specific file from a Makefile
Date: Fri, 12 Jul 2002 20:21:36 +0200

Suppose I checkout a module, but omit the file "testscript".  I can
build and run the module, but not test it.

Later I want to run the tests anyway with "make test".  The Makefile
should then discover the tests haven't been checked out yet, and do this
for me.  I try to put this in the Makefile:

        test: testscript
                do-the-test

        testscript:
                cvs checkout testscript

This doesn't work, because this is in a subdirectory of the module and
the actual name is something like "module/foo/bar/testscript".  This
would work:

        cd ../../..
        cvs checkout module/foo/bar/testscript

However, this requires knowning the name of the module and directories.
Isn't there way to checkout "testscript" without having to specify the
whole path in the Makefile (so that maintenance is easier)?
After all, CVS/Repository contains exactly the name I need to use.  I
suppose it's used for the update command, so why can't checkout use it?

-- 
A M00se once bit my sister ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 ///  Bram Moolenaar -- address@hidden -- http://www.moolenaar.net  \\\
///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
\\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
 \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///



reply via email to

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