summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am60
1 files changed, 6 insertions, 54 deletions
diff --git a/Makefile.am b/Makefile.am
index d5dde8f6..2e5d6947 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -140,12 +140,10 @@ STAPLOG=staplog.so
$(STAPLOG): staplog.c
$(CC) $(staplog_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -shared -rdynamic \
$(AM_LDFLAGS) $(LDFLAGS) -fPIC -o $@ $<
-all-local: $(STAPLOG) example_index
+all-local: $(STAPLOG)
install-exec-local: $(STAPLOG)
$(MKDIR_P) $(DESTDIR)$(pkglibdir)
$(INSTALL) $(STAPLOG) $(DESTDIR)$(pkglibdir)
-else
-all-local: example_index
endif
# Get extra libs as needed
@@ -160,50 +158,8 @@ EXTRA_DIST = auto_free.h buildrun.h elaborate.h loc2c.h session.h \
stap-client stap-server stap-serverd stap-find-servers stap-start-server stap-find-or-start-server stap-stop-server \
systemtap.spec
-EXAMPLE_SOURCE_DIR = $(srcdir)/testsuite/systemtap.examples
-EXAMPLE_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap/examples
-DEMO_SOURCE_DIR = $(srcdir)/testsuite/systemtap.examples/small_demos
-DEMO_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap/examples/small_demos
-SAMPLE_SOURCE_DIR = $(srcdir)/testsuite/systemtap.samples
-SAMPLE_INSTALL_DIR = $(EXAMPLE_INSTALL_DIR)/samples
-
-EXAMPLE_SRC = $(EXAMPLE_SOURCE_DIR)/ChangeLog \
- $(EXAMPLE_SOURCE_DIR)/README \
- $(EXAMPLE_SOURCE_DIR)/*.stp \
- $(EXAMPLE_SOURCE_DIR)/*.txt \
- $(EXAMPLE_SOURCE_DIR)/*.meta \
- $(EXAMPLE_SOURCE_DIR)/*.html \
- $(EXAMPLE_SOURCE_DIR)/*.css \
- $(EXAMPLE_SOURCE_DIR)/*.gif \
- $(EXAMPLE_SOURCE_DIR)/*.png
-
-DEMO_SRC = \
- $(EXAMPLE_SOURCE_DIR)/small_demos/*.stp \
- $(EXAMPLE_SOURCE_DIR)/small_demos/*.txt \
- $(EXAMPLE_SOURCE_DIR)/small_demos/*.wav
-
-SAMPLE_SRC = $(SAMPLE_SOURCE_DIR)/iotask.stp \
- $(SAMPLE_SOURCE_DIR)/kmalloc-stacks.stp \
- $(SAMPLE_SOURCE_DIR)/kmalloc-top \
- $(SAMPLE_SOURCE_DIR)/pfaults.stp \
- $(SAMPLE_SOURCE_DIR)/profile.stp \
- $(SAMPLE_SOURCE_DIR)/tcp_connections.stp \
- $(SAMPLE_SOURCE_DIR)/topsys.stp
-
-EXAMPLE_INDEXES = \
- $(EXAMPLE_SOURCE_DIR)/index.txt \
- $(EXAMPLE_SOURCE_DIR)/index.html \
- $(EXAMPLE_SOURCE_DIR)/subsystem-index.txt \
- $(EXAMPLE_SOURCE_DIR)/subsystem-index.html \
- $(EXAMPLE_SOURCE_DIR)/keyword-index.txt \
- $(EXAMPLE_SOURCE_DIR)/keyword-index.html
-
-example_index: $(EXAMPLE_SOURCE_DIR)/index.html
-
-$(EXAMPLE_SOURCE_DIR)/index.html: $(EXAMPLE_SOURCE_DIR)/*.meta
- perl $(EXAMPLE_SOURCE_DIR)/examples-index-gen.pl $(EXAMPLE_SOURCE_DIR)
-
-dist-hook: dist-gitversion example_index
+
+dist-hook: dist-gitversion
find $(distdir) -name CVS -o -name '*~' -o -name '.#*' | xargs rm -rf
find $(distdir) -name '*.o' -o -name '*.ko' -o -name '*.cmd' -o -name '*.mod.c' -o -name '.??*' | xargs rm -rf
find $(distdir) -name 'stap' -o -name '*.log' -o -name '*.sum' -o -name 'site.exp' | xargs rm -rf
@@ -218,12 +174,9 @@ install-data-local:
do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/runtime/uprobes/$$f; done)
(cd $(srcdir)/tapset; find . \( -name '*.stp' -o -name README \) -print \
| while read f; do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/tapset/$$f; done)
- $(MKDIR_P) $(EXAMPLE_INSTALL_DIR)
- $(INSTALL_DATA) $(EXAMPLE_SRC) $(EXAMPLE_INSTALL_DIR)
- $(MKDIR_P) $(DEMO_INSTALL_DIR)
- $(INSTALL_DATA) $(DEMO_SRC) $(DEMO_INSTALL_DIR)
- $(MKDIR_P) $(SAMPLE_INSTALL_DIR)
- $(INSTALL_DATA) $(SAMPLE_SRC) $(SAMPLE_INSTALL_DIR)
+ (cd $(srcdir)/testsuite/systemtap.examples; find . -type f -print \
+ | egrep -v 'check.exp|ChangeLog|examples-index-gen.pl' \
+ | while read f; do $(INSTALL_DATA) -D $$f $(DESTDIR)$(docdir)/examples/$$f; done)
TEST_COV_DIR = coverage
@@ -245,7 +198,6 @@ clean-local:
rm -rf $(TEST_COV_DIR)
rm -rf stap.info
rm -rf staplog.so
- rm -rf $(EXAMPLE_INDEXES)
uninstall-local:
rm -rf $(DESTDIR)$(pkgdatadir)