From 998392ec0599aa425527fc82a5a0bb7a7f2e0715 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Thu, 21 May 1998 20:31:04 +0000 Subject: [PATCH] conditionally building 'examples' subdir, added 'copyright.txt' to * Makefile.am: conditionally building 'examples' subdir, added 'copyright.txt' to EXTRA_DIST. --- Makefile.am | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 3b9eaeb0..1921ecf7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,12 +1,18 @@ ## Process this file with automake to produce Makefile.in. -built_SUBDIRS = sysdeps src lib examples +if GLIBTOP_EXAMPLES +examples_SUBDIRS = examples +endif -SUBDIRS = po intl support macros $(built_SUBDIRS) +built_SUBDIRS = include sysdeps src lib -include_HEADERS = +SUBDIRS = po intl support macros $(built_SUBDIRS) $(examples_SUBDIRS) -EXTRA_DIST = gtopConf.sh.in +DIST_SUBDIRS = po intl support macros include sysdeps src lib examples + +include_HEADERS = glibtop.h + +EXTRA_DIST = copyright.txt gtopConf.sh.in release: $(MAKE) dist distdir=$(PACKAGE)$(VERSION) @@ -39,5 +45,9 @@ gtopConf.sh: gtopConf.sh.in Makefile -e 's,\@GTOP_SYSDEPS_DIR\@,$(sysdeps_dir),g' \ -e 's,\@GTOP_NEED_SERVER\@,$(need_server),g' \ -e 's,\@GTOP_USE_MACHINE_H\@,$(use_glibtop_machine_h),g' \ + -e 's,\@GTOP_GUILE_FOUND\@,$(gtop_guile_found),g' \ + -e 's,\@GTOP_WANT_NAMES\@,$(gtop_want_names),g' \ + -e 's,\@GTOP_WANT_GUILE_NAMES\@,$(gtop_want_guile_names),g' \ + -e 's,\@GTOP_WANT_EXAMPLES\@,$(gtop_want_examples),g' \ < $(srcdir)/gtopConf.sh.in > gtopConf.tmp \ && mv gtopConf.tmp gtopConf.sh