[Top][All Lists]

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

Copying build results to another directory

From: Richard Carlson
Subject: Copying build results to another directory
Date: Tue, 24 Jul 2001 15:24:42 -0700 (PDT)


I am trying to copy the binary result of my compile to another directory,
as part of the make process.  For example, for the following Makefile:

noinst_PROGRAMS = hello
hello_SOURCES = hello.c

I'd like to copy the resulting binary, "hello", to another directory
whithin the project directory.  The one way I have found to do this is as

noinst_PROGRAMS = hello
hello_SOURCES = hello.c

        cp -p hello $(top_srcdir)/bin

The problem with this is that I'd like the binary to be copied when I
solely build 'hello', as in "make hello".

Thank You,


reply via email to

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