aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorRob Savoye <rob@welcomehome.org>2001-05-06 16:22:20 +0000
committerRob Savoye <rob@welcomehome.org>2001-05-06 16:22:20 +0000
commitee37e3e22012ecee8b3d1d243378ce19a03689e3 (patch)
tree008acffabe6121789ecdc575da9aa8beee9565c6 /Makefile.am
parentca94f15320ca1c1bd31020459f4751ab512b217c (diff)
downloaddejagnu-ee37e3e22012ecee8b3d1d243378ce19a03689e3.zip
dejagnu-ee37e3e22012ecee8b3d1d243378ce19a03689e3.tar.gz
dejagnu-ee37e3e22012ecee8b3d1d243378ce19a03689e3.tar.bz2
* debian/rules: Install all the doc formats.dejagnu-1.4.1-release
* redhat/dejagnu.spec: Install all the doc formats. * Clean.tcl: Also nuke all Emacs backup files. * Makefile.am: Fix dependencies on tarball target. Add new target to build Debian packages. Add $(includedir) to install-data-local target so dejagnu.h gets installed in the right place. * doc/Makefile.am: Make all paths absolute, cause some versions of the db2* tools are braindead. * doc/overview.sgml: Update version numbers and log. * doc/user.sgml: Add mention of dejagnu.h header file. * doc/ref.sgml: Add chapter on dejagnu.h header file for unit testing. * config/default.exp: New file for default config settings for simple native testsuites that don't need anything else. * lib/dejagnu.exp: Add $text\r\n to all strings, to make sure we only get one line at a time. * testsuite/libdejagnu: New directory for dejagnu library test cases. * testsuite/libdejagnu/unit.cc: Test case for dejagnu.h. * testsuite/libdejagnu/tunit.exp: Test driver for dejagnu.h. * testsuite/libdejagnu/Makefile.am: New makefile to build the test case. * testsuite/libdejagnu/Makefile.in: Generated. * testsuite/Makefile.am: Add libdejagnu to SUBDIRS. Replace the site.exp rule, cause we don't want the $tool setting, so we run all the test suites. Don't pass the tool name for "make check". * configure.in: Add testsuite/libdejagnu/Makefile to AC_OUTPUT.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am28
1 files changed, 22 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 8799b88..099d4d8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,7 +29,7 @@ check-DEJAGNU:
@echo "Do nothing here, cause we don't want to run the tests twice"
# Set ourselves up to build a RedHat package
-tarball: doc/overview/overview.html doc/overview.pdf doc/overview.ps
+tarball: overview.html overview.ps overview.pdf
-rm -fr dejagnu-${VERSION}
cp -fpr $(srcdir) dejagnu-${VERSION}
@echo "clean up stuff we don't want in the source file"
@@ -50,7 +50,9 @@ snapshot:
-rm -fr dejagnu-${DATE}
cp -fpr $(srcdir) dejagnu-${DATE}
@echo "clean up stuff we don't want in the source file"
- (cd dejagnu-${DATE} ; $(srcdir)/Clean.tcl)
+ src=$(srcdir); \
+ dir=`(cd $${src}; pwd)`; \
+ (cd dejagnu-${DATE} ; $${dir}/Clean.tcl);
-mkdir -p doc/overview
-cp -fr doc/overview dejagnu-${DATE}/doc/
-cp -fr doc/overview.ps dejagnu-${DATE}/doc/
@@ -65,14 +67,28 @@ rpm: tarball rpmspec
cp -f ../$(distdir).tar.gz /usr/src/redhat/SOURCES/
rpm -ba /usr/src/redhat/SPECS/dejagnu.spec
-overview.html install-doc doc html dvi ps pdf rtf:
+deb: overview.html overview.ps overview.pdf
+ -rm -fr dejagnu-${VERSION}
+ cp -fpr $(srcdir) dejagnu-${VERSION}
+ @echo "clean up stuff we don't want in the source file"
+ src=$(srcdir); \
+ dir=`(cd $${src}; pwd)`; \
+ (cd dejagnu-${VERSION} ; $${dir}/Clean.tcl);
+ -mkdir -p doc/overview;
+ -cp -fr $(srcdir)/debian dejagnu-${VERSION}/;
+ -cp -fr doc/overview dejagnu-${VERSION}/doc/;
+ -cp -fr doc/overview.ps dejagnu-${VERSION}/doc/;
+ -cp -fr doc/overview.pdf dejagnu-${VERSION}/doc/;
+ (cd dejagnu-${VERSION}; dpkg-buildpackage)
+
+overview.html overview.ps overview.pdf install-doc:
cd doc && $(MAKE) $(FLAGS_TO_PASS) $@
# Automake sucks when it comes to building a distribution, so
# we just copy the source tree onto of what Automake did, and
# then we Clean it. Automake only includes the source files.
# We want all the testsuites, data files, and html versions of the doc.
-dist-hook: rpmspec overview.html
+dist-hook: rpmspec overview.html overview.ps overview.pdf
-rm -fr $(distdir)
cp -fpr $(srcdir) $(distdir)
(cd $(distdir) ; $(TCLSH) $(srcdir)/Clean.tcl)
@@ -94,7 +110,7 @@ config_dest = $(DESTDIR)$(pkgdatadir)/config
config_files = $(srcdir)/config/README $(srcdir)/config/*.exp
install-data-local:
- $(mkinstalldirs) $(lib_dest)
+ $(mkinstalldirs) $(lib_dest) $(includedir)
for f in $(lib_files); do \
test ! -f "$$f" || $(INSTALL_DATA) $$f $(lib_dest); \
done
@@ -125,7 +141,7 @@ uninstall-local:
for f in $(baseboards_files); do \
test ! -f "$$f" || rm -f $(baseboards_dest)/`basename "$$f"`; \
done
- rm -f $(baseboards_dest)/`basename dejagnu.h`;
+ rm -f $(includedir)/dejagnu.h;
site.exp: Makefile
@echo 'Making a new site.exp file...'