Files
libgtop/Makefile.am
Martin Baulig 6d3b740a2c added '--enable-libgtop-server' (default=auto), '--enable-libgtop-names'
* acinclude.m4 (AC_LC_SYSDEPS): added
'--enable-libgtop-server' (default=auto),
'--enable-libgtop-names' (default=yes) and
'--enable-libgtop-guile' (default=yes); we
now define 'GLIBTOP_NAMES' here.

* acconfig.h: added 'GLIBTOP_NAMES' and
'GLIBTOP_GUILE_NAMES'
1998-05-20 20:56:12 +00:00

44 lines
1.6 KiB
Makefile

## Process this file with automake to produce Makefile.in.
built_SUBDIRS = sysdeps src lib examples
SUBDIRS = po intl support macros $(built_SUBDIRS)
include_HEADERS =
EXTRA_DIST = 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' \
< $(srcdir)/gtopConf.sh.in > gtopConf.tmp \
&& mv gtopConf.tmp gtopConf.sh