automake
[Top][All Lists]
Advanced

[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)

Hello,

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:

Makefile.am:

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
follows:

Makefile.am

noinst_PROGRAMS = hello
hello_SOURCES = hello.c

all:
        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,

Richard




reply via email to

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