diff options
author | Rob Savoye <rob@welcomehome.org> | 2001-02-18 05:12:06 +0000 |
---|---|---|
committer | Rob Savoye <rob@welcomehome.org> | 2001-02-18 05:12:06 +0000 |
commit | d1796b46df0f70ddb14b62013d88d2292995c7f1 (patch) | |
tree | 0db1f064cd71218d42418c64f411bab128ac0d06 /Makefile.am | |
parent | 229fa96029bd352626b934a724c88eba6a1350f7 (diff) | |
download | dejagnu-d1796b46df0f70ddb14b62013d88d2292995c7f1.zip dejagnu-d1796b46df0f70ddb14b62013d88d2292995c7f1.tar.gz dejagnu-d1796b46df0f70ddb14b62013d88d2292995c7f1.tar.bz2 |
* Most all files: Update copyright notices.
* Makefile.am: Add support for making RPMs. Force different
values for RUNTEST and RUNTESTFLAGS, so we can test ourselves.
* testsuite/Makefile.am: Force a different value for
RUNTESTFLAGS.
* acinclude.m4, configure.in: Find Tclsh, and Docbook.
* configure: Regenerated.
* doc/Makefile.am: Use $DOCBOOK to find the filters.
* doc/overview: Add the html version of the doc so one doesn't
need docbook to read the manual.
* example/calc/Makefile.am: New automake support.
* example/calc/Makefile.in: Generated.
* example/Makefile.am: Recursion support for make.
* example/calc/Makefile.in: Generated by automake.
* example/calc/calc.h.in: Move constants to calc.c, so we can use
autoheader.
* example/calc/calc.c: Add constants from calc.h.in.
* redhat/dejagnu.spec: New RPM packaging file.
* debian/{changelog,conffiles,control,copyright,postinst,preinst,
rules,site.exp}: New Debian packaging support.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 55 |
1 files changed, 52 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index f673015..4b93a73 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,15 +1,63 @@ ## Process this file with automake to generate Makefile.in -AUTOMAKE_OPTIONS = cygnus +AUTOMAKE_OPTIONS = dejagnu +# Install all the associated data files SUBDIRS = doc testsuite example -# driver script goes in /usr/local/bin +# Install the bourne shell script driver in the bindir bin_SCRIPTS = runtest -# auxiliary scripts go in /usr/local/share/dejagnu +# Install the main DejaGnu expect file in the datadir pkgdata_SCRIPTS = config.guess runtest.exp +# Install config.guess too, so we can use it to figure out +# what type of machine we're running on. +libexecdir = $(pkgdatadir)/libexec +libexec_SCRIPTS = config.guess + +TLCSH = @TCLSH@ + +RUNTESTDEFAULTFLAGS = --tool runtest --srcdir $(srcdir)/testsuite RUNTEST=$(RUNTEST) +RUNTEST = ` \ + if [ -f ${srcdir}/runtest$(EXEEXT) ] ; then \ + echo ${srcdir}/runtest$(EXEEXT) ; \ + else echo runtest ; fi` + +# Set ourselves up to build a RedHat package +dist2: rpmspec overview.html + -rm -fr dejagnu-${VERSION}.0 + cp -fpr $(srcdir) dejagnu-${VERSION}.0 + @echo "clean up stuff we don't want in the source file" + (cd dejagnu-${VERSION}.0 ; $(srcdir)/Clean.tcl) + -mkdir -p doc/overview + -cp -fr doc/overview dejagnu-${VERSION}.0/doc/ + tar cvf ../dejagnu-${VERSION}.tar dejagnu-${VERSION}.0 + gzip -9fv ../dejagnu-${VERSION}.tar + cp -f ../dejagnu-${VERSION}.tar.gz /usr/src/redhat/SOURCES/ + cp -f $(srcdir)/redhat/dejagnu.spec /usr/src/redhat/SPECS/ + +rpmspec: + cp -f $(srcdir)/redhat/dejagnu.spec /usr/src/redhat/SPECS/ + +rpm: dist 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: + 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 + -rm -fr $(distdir) + cp -fpr $(srcdir) $(distdir) + (cd $(distdir) ; $(TCLSH) $(srcdir)/Clean.tcl) + -cp -fr doc/overview $(distdir)/doc/ + + # Below, host-independent data files that need to get installed. # We do it this way so we can use globbing. @@ -48,3 +96,4 @@ uninstall-local: for f in $(baseboards_files); do \ test ! -f "$$f" || rm -f $(baseboards_dest)/`basename "$$f"`; \ done + |