diff options
author | Ben Elliston <bje@gnu.org> | 2005-12-23 20:39:29 +0000 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2005-12-23 20:39:29 +0000 |
commit | 7f69ac779dd79b8123b5691bc22f9797e8d04144 (patch) | |
tree | fd44b8d5dc25779cb2afea663c17ed2813a2612d /Makefile.am | |
parent | 2cc41b2497c06224ad177d7b389c4d9d8d793ada (diff) | |
download | dejagnu-7f69ac779dd79b8123b5691bc22f9797e8d04144.zip dejagnu-7f69ac779dd79b8123b5691bc22f9797e8d04144.tar.gz dejagnu-7f69ac779dd79b8123b5691bc22f9797e8d04144.tar.bz2 |
* Makefile.am (SUBDIRS): Remove.
(EXTRA_DIST): Append $(XML).
(dist_man_MANS): Define.
(info_TEXINFOS): Likewise.
(XML): List XML source files.
(dejagnu.pdf): New target.
(dejagnu.ps): Likewise.
(dejagnu.rtf): Likewise.
(html): Likewise.
(dejagnu.texi): Special rule to build Texinfo source.
* Makefile.in: Regenerate.
* configure.ac: Don't search for docbook2dvi.
Search for docbook2rtf and docbook2pdf.
Don't output doc/Makefile or doc/C/Makefile.
* configure: Regenerate.
* doc/texinfo.tex: Move from here ..
* texinfo.tex: .. to here.
* doc/Makefile.am: Remove.
* doc/Makefile.in: Likewise.
* doc/C/dejagnu.omf: Likewise.
* doc/C/topic.dat: Likewise.
* doc/C/dejagnu.xml: Move from here ..
* doc/dejagnu.xml: .. to here.
* doc/C/legal.xml: Move from here ..
* doc/legal.xml: .. to here.
* doc/C/ref.xml: Move from here ..
* doc/ref.xml: .. to here.
* doc/C/user.xml: Move from here ..
* doc/user.xml: .. to here.
* doc/dejagnu.texi: Rebuild from XML source.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 57 |
1 files changed, 43 insertions, 14 deletions
diff --git a/Makefile.am b/Makefile.am index dbf4e1c..54f542e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,6 @@ # Process this file with automake to generate Makefile.in AUTOMAKE_OPTIONS = dejagnu -SUBDIRS = doc EXTRA_DIST = ChangeLog.0 MAINTAINERS runtest site.tmpl \ $(pkgdata_DATA) $(pkgdata_SCRIPTS) \ @@ -9,6 +8,7 @@ EXTRA_DIST = ChangeLog.0 MAINTAINERS runtest site.tmpl \ $(baseboard_DATA) $(baseboard_SCRIPTS) \ $(PACKAGING_METAFILES) $(TESTSUITE_FILES) + $(XML) bin_SCRIPTS = runtest include_HEADERS = dejagnu.h @@ -167,6 +167,8 @@ pkgdata_DATA = stub-loader.c testglue.c djlibexecdir = $(pkgdatadir)/libexec djlibexec_SCRIPTS = config.guess +# Testsuite. + TESTSUITE_FILES = \ testsuite/runtest.all/topdir/subdir1/subsubdir1/subsubfile1 \ testsuite/runtest.all/topdir/subdir1/subfile1 \ @@ -187,19 +189,55 @@ TESTSUITE_FILES = \ testsuite/lib/util-defs.exp \ testsuite/libdejagnu/tunit.exp +RUNTEST = `if [ -f ${top_srcdir}/runtest$(EXEEXT) ] ; then \ + echo ${top_srcdir}/runtest$(EXEEXT); \ + else echo "ERROR: runtest not found" ; exit 1; fi` + +RUNTESTDEFAULTFLAGS = --tool runtest --srcdir $(srcdir)/testsuite RUNTEST=$(RUNTEST) +AM_CXXFLAGS = -I$(top_srcdir) -g +check_PROGRAMS = unit +unit_SOURCES = testsuite/libdejagnu/unit.cc + +# Documentation. + +dist_man_MANS = doc/runtest.1 +info_TEXINFOS = doc/dejagnu.texi + +XML = doc/dejagnu.xml doc/legal.xml doc/ref.xml doc/user.xml + +dejagnu.pdf: $(XML) + docbook2pdf $(srcdir)/doc/dejagnu.xml + +dejagnu.ps: $(XML) + docbook2ps $(srcdir)/doc/dejagnu.xml + +dejagnu.rtf: $(XML) + docbook2rtf $(srcdir)/doc/dejagnu.xml + +html: + docbook2html -o html $(srcdir)/doc/dejagnu.xml + +doc/dejagnu.texi: $(XML) + db2x_xsltproc -s texi $(srcdir)/doc/dejagnu.xml -o dejagnu.txml + db2x_texixml dejagnu.txml + mv dejagnu.texi $(srcdir)/doc + rm dejagnu.txml + +# Packaging. + PACKAGING_METAFILES = packaging/depot/dejagnu.psf \ packaging/deb/site.exp packaging/deb/changelog packaging/deb/conffiles \ packaging/deb/control packaging/deb/copyright packaging/deb/postinst \ packaging/deb/preinst packaging/deb/rules packaging/pkg/pkginfo \ packaging/pkg/prototype packaging/rpm/dejagnu.spec -# Build an RPM package +# RPM rpm: dist $(srcdir)/packaging/rpm/dejagnu.spec cp -f $(srcdir)/packaging/rpm/dejagnu.spec /usr/src/redhat/SPECS/ cp -f dejagnu-${VERSION}.tar.gz /usr/src/redhat/SOURCES/ rpm -ba /usr/src/redhat/SPECS/dejagnu.spec -# Build a Debian GNU/Linux package +# Debian GNU/Linux package deb: dist rm -rf dejagnu-${VERSION} tar xfz dejagnu-${VERSION}.tar.gz @@ -216,7 +254,7 @@ $(PKGDIR)/dejagnu: $(srcdir)/configure -v --prefix $@ make install -# Build a Solaris package +# Solaris package solpkg: $(PKGDIR)/dejagnu cp $(srcdir)/packaging/pkg/prototype /tmp cp $(srcdir)/packaging/pkg/pkginfo /tmp @@ -227,7 +265,7 @@ solpkg: $(PKGDIR)/dejagnu gzip -9fv $$here/dejagnu-${VERSION}.SPARC.2.8.pkg.tar rm -rf /tmp/prototype /tmp/pkginfo /tmp/DejaGnu -# Build a HP depot package +# HP depot package hpdepot: $(PKGDIR)/dejagnu swpackage -s $(srcdir)/packaging/depot/dejagnu.psf -x target_type=directory -d /tmp here=`pwd`; \ @@ -235,12 +273,3 @@ hpdepot: $(PKGDIR)/dejagnu tar cf $$here/dejagnu-${VERSION}.hpux11.depot dejagnu; \ gzip -9fv $$here/dejagnu-${VERSION}.hpux11.depot; \ rm -rf /tmp/dejagnu - -RUNTEST = `if [ -f ${top_srcdir}/runtest$(EXEEXT) ] ; then \ - echo ${top_srcdir}/runtest$(EXEEXT); \ - else echo "ERROR: runtest not found" ; exit 1; fi` - -RUNTESTDEFAULTFLAGS = --tool runtest --srcdir $(srcdir)/testsuite RUNTEST=$(RUNTEST) -AM_CXXFLAGS = -I$(top_srcdir) -g -check_PROGRAMS = unit -unit_SOURCES = testsuite/libdejagnu/unit.cc |