From d52fc3f868cd39b413db47e44707b1f9a191fc77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Sat, 24 Jun 2006 17:54:41 +0000 Subject: [PATCH] Build examples only when needed. Patch by dmacks@netspace.org. Closes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2006-06-24 Benoît Dejean * Makefile.am: Build examples only when needed. Patch by dmacks@netspace.org. Closes #342863. --- ChangeLog | 8 ++++++++ Makefile.am | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f5a00c60..2b14aa35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-06-24 Benoît Dejean + + * Makefile.am: + + Build examples only when needed. + Patch by dmacks@netspace.org. + Closes #342863. + 2006-06-24 Benoît Dejean * libgtop-sysdeps.m4: diff --git a/Makefile.am b/Makefile.am index c02d7175..1dbb7c00 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,10 @@ -SUBDIRS = po misc include sysdeps lib src examples doc +if EXAMPLES +EXAMPLES_DIR = examples +else +EXAMPLES_DIR = +fi +SUBDIRS = po misc include sysdeps lib src $(EXAMPLES_DIR) doc libgtopinclude_HEADERS = glibtop.h libgtopconfig.h libgtopincludedir = $(includedir)/libgtop-2.0