* [PATCH] Make VPATH build work
@ 2010-03-18 10:40 Yang Gu
0 siblings, 0 replies; only message in thread
From: Yang Gu @ 2010-03-18 10:40 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1229 bytes --]
Sometimes, you may need to distinguish the source tree and the build tree, when
you want to keep the source tree uncluttered, or you need to build the source
with several different configurations, or even your source tree is read only.
This feature is called VPATH build and the patch is to make this work.
A typical example is as below (Note that the "build" directory can be any name
and in any place):
> cd ofono && mkdir build && cd build
> ../configure XXX
> make
Then everything you got from the make will reside in "build" directory.
---
Makefile.am | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index eca8eee..bd74fb7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -374,11 +374,11 @@ $(src_ofonod_OBJECTS) $(unit_objects): $(local_headers)
include/ofono/version.h: include/version.h
$(AM_V_at)$(MKDIR_P) include/ofono
- $(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
+ $(AM_V_GEN)$(LN_S) $(abs_builddir)/$< $@
include/ofono/%.h: include/%.h
$(AM_V_at)$(MKDIR_P) include/ofono
- $(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
+ $(AM_V_GEN)$(LN_S) $(abs_builddir)/$< $@
clean-local: include/ofono
@$(RM) -r $<
--
1.6.3.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-18 10:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18 10:40 [PATCH] Make VPATH build work Yang Gu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox