* Makefile.am (rpmspec): Remove.
authorBen Elliston <bje@gnu.org>
Sat, 7 Feb 2004 02:17:38 +0000 (02:17 +0000)
committerBen Elliston <bje@gnu.org>
Sat, 7 Feb 2004 02:17:38 +0000 (02:17 +0000)
(rpm): Additionally depend on dejagnu.spec.
($(PKGDIR)/dejagnu): New target that installs DejaGnu into this
directory.  This saves duplicated code in the solpkg and hpdepot
targets.
(solpkg): Depend on $(PKGDIR)/dejagnu.
(hpdepot): Likewise.
* Makefile.in: Regenerate.

ChangeLog
Makefile.am
Makefile.in

index def3003..10e408c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2004-02-07  Ben Elliston  <bje@wasabisystems.com>
 
+       * Makefile.am (rpmspec): Remove.
+       (rpm): Additionally depend on dejagnu.spec.
+       ($(PKGDIR)/dejagnu): New target that installs DejaGnu into this
+       directory.  This saves duplicated code in the solpkg and hpdepot
+       targets.
+       (solpkg): Depend on $(PKGDIR)/dejagnu.
+       (hpdepot): Likewise.
+       * Makefile.in: Regenerate.
+
+2004-02-07  Ben Elliston  <bje@wasabisystems.com>
+
        * Makefile.am (RUNTEST, RUNTESTDEFAULTFLAGS): Remove.
        * Makefile.in: Regenerate.
        * testsuite/Makefile.am (CLEANFILES): Remove.
index 3797d76..f2598b1 100644 (file)
@@ -175,32 +175,31 @@ PACKAGING_METAFILES = packaging/depot/dejagnu.psf \
        packaging/deb/preinst packaging/deb/rules packaging/pkg/pkginfo \
        packaging/pkg/prototype packaging/rpm/dejagnu.spec
 
-rpmspec: $(srcdir)/packaging/rpm/dejagnu.spec
-       cp -f $(srcdir)/packaging/rpm/dejagnu.spec /usr/src/redhat/SPECS/
-
 # Build an RPM package
-rpm: rpmspec dist
+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
 deb: dist
-       -rm -fr dejagnu-${VERSION}
+       -rm -rf dejagnu-${VERSION}
        tar xfz dejagnu-${VERSION}.tar.gz
        cp -fr $(srcdir)/packaging/deb dejagnu-${VERSION}/
        (cd dejagnu-${VERSION}; dpkg-buildpackage)
 
+# Most proprietary Unices use /opt for optional packages.
 PKGDIR = /opt
 
+$(PKGDIR)/dejagnu:
+       rm -rf dejagnu-${VERSION}
+       mkdir dejagnu-${VERSION}
+       cd dejagnu-${VERSION}
+       $(srcdir)/configure -v --prefix $@
+       make install
+
 # Build a Solaris package
-solpkg: $(srcdir)/packaging/pkg/prototype
-       if test ! -d $(PKGDIR)/dejagnu; then \
-         rm -fr dejagnu-${VERSION}; \
-         mkdir dejagnu-${VERSION}; \
-         cd dejagnu-${VERSION}; \
-         $(srcdir)/configure -v --prefix $(PKGDIR)/dejagnu; \
-         make install ; \
-       fi
+solpkg: $(PKGDIR)/dejagnu
        cp $(srcdir)/packaging/pkg/prototype /tmp
        cp $(srcdir)/packaging/pkg/pkginfo /tmp
        here=`pwd`; \
@@ -208,20 +207,13 @@ solpkg: $(srcdir)/packaging/pkg/prototype
          pkgmk -o -r / -d /tmp; \
          tar cf $$here/dejagnu-${VERSION}.SPARC.2.8.pkg.tar DejaGnu; \
          gzip -9fv  $$here/dejagnu-${VERSION}.SPARC.2.8.pkg.tar
-       rm -fr /tmp/prototype /tmp/pkginfo /tmp/DejaGnu
+       rm -rf /tmp/prototype /tmp/pkginfo /tmp/DejaGnu
 
 # Build a HP depot package
-hpdepot:
-       if test ! -d $(PKGDIR)/dejagnu; then \
-         rm -fr dejagnu-${VERSION}; \
-         mkdir dejagnu-${VERSION}; \
-         cd dejagnu-${VERSION}; \
-         $(srcdir)/configure -v --prefix $(PKGDIR)/dejagnu; \
-         make install ; \
-       fi
+hpdepot: $(PKGDIR)/dejagnu
        swpackage -s $(srcdir)/packaging/depot/dejagnu.psf -x target_type=directory -d /tmp
        here=`pwd`; \
          cd /tmp; \
          tar cf $$here/dejagnu-${VERSION}.hpux11.depot dejagnu; \
          gzip -9fv  $$here/dejagnu-${VERSION}.hpux11.depot; \
-         rm -fr /tmp/dejagnu
+         rm -rf /tmp/dejagnu
index 866545e..7fc0064 100644 (file)
@@ -347,6 +347,8 @@ PACKAGING_METAFILES = packaging/depot/dejagnu.psf \
        packaging/deb/preinst packaging/deb/rules packaging/pkg/pkginfo \
        packaging/pkg/prototype packaging/rpm/dejagnu.spec
 
+
+# Most proprietary Unices use /opt for optional packages.
 PKGDIR = /opt
 all: all-recursive
 
@@ -949,30 +951,28 @@ uninstall-info: uninstall-info-recursive
        uninstall-pkgdataDATA uninstall-pkgdataSCRIPTS
 
 
-rpmspec: $(srcdir)/packaging/rpm/dejagnu.spec
-       cp -f $(srcdir)/packaging/rpm/dejagnu.spec /usr/src/redhat/SPECS/
-
 # Build an RPM package
-rpm: rpmspec dist
+rpm: dist
+       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
 deb: dist
-       -rm -fr dejagnu-${VERSION}
+       -rm -rf dejagnu-${VERSION}
        tar xfz dejagnu-${VERSION}.tar.gz
        cp -fr $(srcdir)/packaging/deb dejagnu-${VERSION}/
        (cd dejagnu-${VERSION}; dpkg-buildpackage)
 
+$(PKGDIR)/dejagnu:
+       rm -rf dejagnu-${VERSION}
+       mkdir dejagnu-${VERSION}
+       cd dejagnu-${VERSION}
+       $(srcdir)/configure -v --prefix $@
+       make install
+
 # Build a Solaris package
-solpkg: $(srcdir)/packaging/pkg/prototype
-       if test ! -d $(PKGDIR)/dejagnu; then \
-         rm -fr dejagnu-${VERSION}; \
-         mkdir dejagnu-${VERSION}; \
-         cd dejagnu-${VERSION}; \
-         $(srcdir)/configure -v --prefix $(PKGDIR)/dejagnu; \
-         make install ; \
-       fi
+solpkg: $(PKGDIR)/dejagnu
        cp $(srcdir)/packaging/pkg/prototype /tmp
        cp $(srcdir)/packaging/pkg/pkginfo /tmp
        here=`pwd`; \
@@ -980,23 +980,16 @@ solpkg: $(srcdir)/packaging/pkg/prototype
          pkgmk -o -r / -d /tmp; \
          tar cf $$here/dejagnu-${VERSION}.SPARC.2.8.pkg.tar DejaGnu; \
          gzip -9fv  $$here/dejagnu-${VERSION}.SPARC.2.8.pkg.tar
-       rm -fr /tmp/prototype /tmp/pkginfo /tmp/DejaGnu
+       rm -rf /tmp/prototype /tmp/pkginfo /tmp/DejaGnu
 
 # Build a HP depot package
-hpdepot:
-       if test ! -d $(PKGDIR)/dejagnu; then \
-         rm -fr dejagnu-${VERSION}; \
-         mkdir dejagnu-${VERSION}; \
-         cd dejagnu-${VERSION}; \
-         $(srcdir)/configure -v --prefix $(PKGDIR)/dejagnu; \
-         make install ; \
-       fi
+hpdepot: $(PKGDIR)/dejagnu
        swpackage -s $(srcdir)/packaging/depot/dejagnu.psf -x target_type=directory -d /tmp
        here=`pwd`; \
          cd /tmp; \
          tar cf $$here/dejagnu-${VERSION}.hpux11.depot dejagnu; \
          gzip -9fv  $$here/dejagnu-${VERSION}.hpux11.depot; \
-         rm -fr /tmp/dejagnu
+         rm -rf /tmp/dejagnu
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT: