summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in21
1 files changed, 19 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 6e9bd6cf..ddda1fee 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -278,7 +278,16 @@ LDADD =
EXTRA_DIST = buildrun.h elaborate.h loc2c.h session.h \
parse.h staptree.h tapsets.h translate.h \
cache.h hash.h mdfour.h util.h \
- testsuite systemtap.spec runtime tapset
+ examples testsuite systemtap.spec runtime tapset
+
+SAMPLE_DEST_DIR = $(distdir)/examples/samples
+SAMPLE_SRC = $(distdir)/testsuite/systemtap.samples/iotask.stp \
+ $(distdir)/testsuite/systemtap.samples/kmalloc-stacks.stp \
+ $(distdir)/testsuite/systemtap.samples/kmalloc-top \
+ $(distdir)/testsuite/systemtap.samples/pfaults.stp \
+ $(distdir)/testsuite/systemtap.samples/profile.stp \
+ $(distdir)/testsuite/systemtap.samples/tcp_connections.stp \
+ $(distdir)/testsuite/systemtap.samples/topsys.stp
TEST_COV_DIR = coverage
SUBDIRS = testsuite $(am__append_4)
@@ -1219,7 +1228,15 @@ uninstall-man: uninstall-man1 uninstall-man5
@BUILD_ELFUTILS_TRUE@ cp -df lib-elfutils/*.so* lib-elfutils/${PACKAGE_NAME}/*.so* \
@BUILD_ELFUTILS_TRUE@ $(pkglibdir)
@BUILD_ELFUTILS_TRUE@install-exec-local: install-elfutils
-dist-hook:
+
+# Copy some of the testsuite sample scripts to the distdir
+# 'examples/samples' directory.
+dist-add-samples: $(SAMPLE_SRC)
+ rm -rf $(SAMPLE_DEST_DIR)
+ mkdir -p $(SAMPLE_DEST_DIR)
+ cp $(SAMPLE_SRC) $(SAMPLE_DEST_DIR)
+
+dist-hook: dist-add-samples
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