Files
libgtop/Makefile.am
Martin Baulig 998392ec05 conditionally building 'examples' subdir, added 'copyright.txt' to
* Makefile.am: conditionally building 'examples' subdir,
added 'copyright.txt' to EXTRA_DIST.
1998-05-21 20:31:04 +00:00

54 lines
2.0 KiB
Makefile

## Process this file with automake to produce Makefile.in.
if GLIBTOP_EXAMPLES
examples_SUBDIRS = examples
endif
built_SUBDIRS = include sysdeps src lib
SUBDIRS = po intl support macros $(built_SUBDIRS) $(examples_SUBDIRS)
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)
## Put `exec' in the name because this should be installed by
## `install-exec', not `install-data'.
confexecdir=$(libdir)
confexec_DATA = $(top_builddir)/gtopConf.sh
## to automatically rebuild aclocal.m4 if any of the macros in
## `macros/' change
@MAINT@include macros/macros.dep
@MAINT@macros/macros.dep: macros/Makefile.am
@MAINT@ cd macros && $(MAKE) macros.dep
## We create gtopConf.sh here and not from configure because we want
## to get the paths expanded correctly. Macros like srcdir are given
## the value NONE in configure if the user doesn't specify them (this
## is an autoconf feature, not a bug).
gtopConf.sh: gtopConf.sh.in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
sed -e 's,\@GTOP_LIBDIR\@,$(libdir),g' \
-e 's,\@GTOP_INCLUDEDIR\@,$(includedir),g' \
-e 's,\@GTOP_LIBS\@,$(GTOP_LIBS),g' \
-e 's,\@GTOP_INCS\@,$(GTOP_INCS),g' \
-e 's,\@GTOP_GUILE_LIBS\@,$(GTOP_GUILE_LIBS),g' \
-e 's,\@GTOP_GUILE_INCS\@,$(GTOP_GUILE_INCS),g' \
-e 's,\@GTOP_BINDIR\@,$(GTOP_BINDIR),g' \
-e 's,\@GTOP_SERVER\@,$(GTOP_SERVER),g' \
-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