From 30b0841395f1f06111ca72cf99b8920bb1617f46 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Sat, 7 Feb 2004 02:17:38 +0000 Subject: * 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. --- Makefile.in | 39 ++++++++++++++++----------------------- 1 file changed, 16 insertions(+), 23 deletions(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 866545e..7fc0064 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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: -- cgit v1.2.3