1 | ## Process this file with automake to produce Makefile.in. |
---|
2 | |
---|
3 | if EXAMPLES |
---|
4 | examples_SUBDIRS = examples |
---|
5 | else |
---|
6 | examples_SUBDIRS = |
---|
7 | endif |
---|
8 | |
---|
9 | if BUILD_GNOME_SUPPORT |
---|
10 | support = support |
---|
11 | endif |
---|
12 | |
---|
13 | SUBDIRS = po $(support) misc include sysdeps lib src \ |
---|
14 | $(examples_SUBDIRS) doc |
---|
15 | |
---|
16 | libgtopinclude_HEADERS = glibtop.h |
---|
17 | libgtopincludedir = $(includedir)/libgtop-2.0 |
---|
18 | |
---|
19 | EXTRA_DIST = autogen.sh libgtop.spec.in copyright.txt libgtopConf.sh.in \ |
---|
20 | LIBGTOP-VERSION features.def libgtop-config.in RELNOTES-0.25 \ |
---|
21 | RELNOTES-1.0 RELNOTES-1.0.x libgtop-sysdeps.m4 README \ |
---|
22 | libgtop-mirror.sh libgtop-2.0.pc.in acinclude.m4 |
---|
23 | |
---|
24 | dist-hook: |
---|
25 | cp libgtop.spec $(distdir) |
---|
26 | |
---|
27 | release: |
---|
28 | $(MAKE) dist distdir=$(PACKAGE)-$(VERSION) |
---|
29 | |
---|
30 | ## Put `exec' in the name because this should be installed by |
---|
31 | ## `install-exec', not `install-data'. |
---|
32 | ## confexecdir = $(libdir) |
---|
33 | ## confexec_DATA = $(top_builddir)/libgtopConf.sh \ |
---|
34 | ## $(top_builddir)/libgtop-features.def |
---|
35 | |
---|
36 | pkgconfigdir = $(libdir)/pkgconfig |
---|
37 | pkgconfig_DATA = libgtop-2.0.pc |
---|
38 | |
---|
39 | CLEANFILES=libgtopConf.sh |
---|
40 | |
---|
41 | ## bin_SCRIPTS = $(top_builddir)/libgtop-config |
---|
42 | |
---|
43 | ## to automatically rebuild aclocal.m4 if any of the macros in |
---|
44 | ## `macros/' change |
---|
45 | ## @MAINT@ include macros/macros.dep |
---|
46 | ## @MAINT@macros/macros.dep: macros/Makefile.am |
---|
47 | ## @MAINT@ cd macros && $(MAKE) macros.dep |
---|
48 | |
---|
49 | @MAINT@$(top_srcdir)/aclocal.m4: libgtop-sysdeps.m4 LIBGTOP-VERSION |
---|
50 | |
---|
51 | ## We create libgtopConf.sh here and not from configure because we want |
---|
52 | ## to get the paths expanded correctly. Macros like srcdir are given |
---|
53 | ## the value NONE in configure if the user doesn't specify them (this |
---|
54 | ## is an autoconf feature, not a bug). |
---|
55 | libgtopConf.sh: libgtopConf.sh.in Makefile |
---|
56 | ## Use sed and then mv to avoid problems if the user interrupts. |
---|
57 | sed -e 's#\@LIBGTOP_LIBDIR\@#$(libdir)#g' \ |
---|
58 | -e 's#\@LIBGTOP_INCLUDEDIR\@#$(includedir)/libgtop-2.0#g' \ |
---|
59 | -e 's#\@LIBGTOP_DATADIR\@#$(datadir)#g' \ |
---|
60 | -e 's#\@LIBGTOP_EXTRA_LIBS\@#$(LIBGTOP_EXTRA_LIBS)#g' \ |
---|
61 | -e 's#\@LIBGTOP_LIBS\@#$(LIBGTOP_LIBS)#g' \ |
---|
62 | -e 's#\@LIBGTOP_INCS\@#$(LIBGTOP_INCS)#g' \ |
---|
63 | -e 's#\@LIBGTOP_NAMES_LIBS\@#$(LIBGTOP_NAMES_LIBS)#g' \ |
---|
64 | -e 's#\@LIBGTOP_NAMES_INCS\@#$(LIBGTOP_NAMES_INCS)#g' \ |
---|
65 | -e 's#\@LIBGTOP_GUILE_LIBS\@#$(LIBGTOP_GUILE_LIBS)#g' \ |
---|
66 | -e 's#\@LIBGTOP_GUILE_INCS\@#$(LIBGTOP_GUILE_INCS)#g' \ |
---|
67 | -e 's#\@LIBGTOP_GUILE_NAMES_LIBS\@#$(LIBGTOP_GUILE_NAMES_LIBS)#g' \ |
---|
68 | -e 's#\@LIBGTOP_GUILE_NAMES_INCS\@#$(LIBGTOP_GUILE_NAMES_INCS)#g' \ |
---|
69 | -e 's#\@LIBGTOP_BINDIR\@#$(LIBGTOP_BINDIR)#g' \ |
---|
70 | -e 's#\@LIBGTOP_SERVER\@#$(LIBGTOP_SERVER)#g' \ |
---|
71 | -e 's#\@LIBGTOP_MAJOR_VERSION\@#$(LIBGTOP_MAJOR_VERSION)#g' \ |
---|
72 | -e 's#\@LIBGTOP_MINOR_VERSION\@#$(LIBGTOP_MINOR_VERSION)#g' \ |
---|
73 | -e 's#\@LIBGTOP_MICRO_VERSION\@#$(LIBGTOP_MICRO_VERSION)#g' \ |
---|
74 | -e 's#\@LIBGTOP_VERSION\@#$(LIBGTOP_VERSION)#g' \ |
---|
75 | -e 's#\@LIBGTOP_VERSION_CODE\@#$(LIBGTOP_VERSION_CODE)#g' \ |
---|
76 | -e 's#\@LIBGTOP_SERVER_VERSION\@#$(LIBGTOP_SERVER_VERSION)#g' \ |
---|
77 | -e 's#\@libgtop_sysdeps_dir\@#$(libgtop_sysdeps_dir)#g' \ |
---|
78 | -e 's#\@libgtop_need_server\@#$(libgtop_need_server)#g' \ |
---|
79 | -e 's#\@libgtop_use_machine_h\@#$(libgtop_use_machine_h)#g' \ |
---|
80 | -e 's#\@libgtop_guile_found\@#$(libgtop_guile_found)#g' \ |
---|
81 | -e 's#\@libgtop_want_examples\@#$(libgtop_want_examples)#g' \ |
---|
82 | < $(srcdir)/libgtopConf.sh.in > libgtopConf.tmp \ |
---|
83 | && mv libgtopConf.tmp libgtopConf.sh |
---|
84 | |
---|
85 | # libgtop-config: libgtop-config.in Makefile |
---|
86 | # sed -e 's#\@LIBGTOP_LIBDIR\@#$(libdir)#g' \ |
---|
87 | # < $(srcdir)/libgtop-config.in > libgtop-config.tmp \ |
---|
88 | # && mv libgtop-config.tmp libgtop-config && \ |
---|
89 | # chmod 755 libgtop-config |
---|
90 | |
---|
91 | libgtop-features.def: features.def |
---|
92 | @LN_S@ $< $@ |
---|
93 | |
---|