summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorhunt <hunt>2005-07-21 21:15:24 +0000
committerhunt <hunt>2005-07-21 21:15:24 +0000
commit1e7ad3bfd296a93f2a88ad0a617acc7c63107c0c (patch)
treeec55ee10093a5c2c831790f01770860dbec1f409 /Makefile.am
parentbeaf71f4a586f4092eea1c64b99705d91ba09522 (diff)
downloadsystemtap-steved-1e7ad3bfd296a93f2a88ad0a617acc7c63107c0c.tar.gz
systemtap-steved-1e7ad3bfd296a93f2a88ad0a617acc7c63107c0c.tar.xz
systemtap-steved-1e7ad3bfd296a93f2a88ad0a617acc7c63107c0c.zip
2005-07-21 Martin Hunt <hunt@redhat.com>
* Makefile.am (EXTRA_DIST): Add systemtap.spec. (install-data-local): Install docs and probes. (docs): New target. (rpm): New target. * configure.ac: Set initial version to 0.1.1. (pkglibdir): Set to libexec. * Makefile.in: Regenerated.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am26
1 files changed, 19 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am
index 2db6d044..64679647 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,7 +8,7 @@ stap_SOURCES = main.cxx \
parse.cxx staptree.cxx elaborate.cxx translate.cxx \
tapsets.cxx buildrun.cxx
-pkglib_PROGRAMS = stpd
+libexec_PROGRAMS = stpd
stpd_SOURCES = runtime/stpd/stpd.c runtime/stpd/librelay.c
stpd_LDADD = -lpthread
@@ -17,15 +17,21 @@ AM_CXXFLAGS = -Wall
# Get extra libs as needed
LDADD =
-EXTRA_DIST=testsuite runtime $(wildcard $(srcdir)/*.h)
+EXTRA_DIST=testsuite runtime $(wildcard $(srcdir)/*.h) systemtap.spec
dist-hook:
- find $(distdir) -name CVS -o -name '*~' -o -name '.#*' | xargs rm -rf
+ find $(distdir) -name CVS -o -name '*~' -o -name '.#*' -o name ChangeLog | xargs rm -rf
find $(distdir) -name '*.o' -o -name '*.ko' -o -name '*.cmd' -o -name '*.mod.c' -o -name '.??*' | xargs rm -rf
+pkgdocdir = ${prefix}/share/doc/systemtap
+
install-data-local:
- mkdir -p $(DESTDIR)$(pkgdatadir)
- cp -rp $(srcdir)/runtime $(DESTDIR)$(pkgdatadir)
+ mkdir -p $(DESTDIR)$(pkgdatadir) $(DESTDIR)$(pkgdocdir) $(DESTDIR)$(pkgdocdir)/runtime
+ mkdir -p $(DESTDIR)$(pkgdocdir)/runtime/docs $(DESTDIR)$(pkgdatadir)/runtime/docs
+ cp -rp $(srcdir)/runtime/*.[ch] $(srcdir)/runtime/Doxyfile $(DESTDIR)$(pkgdatadir)
+ cp -rp $(srcdir)/runtime/probes $(DESTDIR)$(pkgdatadir)/probes
+ cp -rp $(srcdir)/runtime/docs/html/* $(DESTDIR)$(pkgdocdir)/runtime
find $(DESTDIR)$(pkgdatadir) -name CVS -o -name '*~' -o -name '.#*' | xargs rm -rf
+ find $(DESTDIR)$(pkgdocdir) -name CVS -o -name '*~' -o -name '.#*' | xargs rm -rf
p=$(srcdir)/testsuite/parse
s=$(srcdir)/testsuite/sem
@@ -46,6 +52,12 @@ gcov:
@rm -f `ls -1 *.gcov | fgrep -v .cxx.gcov`
ls -l *.cxx.gcov
-clean-local:
- rm -f *.gcov *.gcno *.gcda
+docs: runtime/Doxyfile
+ cd runtime && doxygen Doxyfile
+rpm: dist docs
+ rpmbuild -ta @PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.gz
+
+clean-local:
+ rm -f *.gcov *.gcno *.gcda @PACKAGE_TARNAME@-*.tar.gz
+ rm -rf @PACKAGE_TARNAME@-@PACKAGE_VERSION@