aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2004-02-07 02:17:38 +0000
committerBen Elliston <bje@gnu.org>2004-02-07 02:17:38 +0000
commit30b0841395f1f06111ca72cf99b8920bb1617f46 (patch)
tree4068f9a7bd478787e52c1dbd0637819cc3f0e096
parente2b56ec4bd4563a707f1938843217dc46c6dfa53 (diff)
* 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.
-rw-r--r--ChangeLog11
-rw-r--r--Makefile.am38
-rw-r--r--Makefile.in39
3 files changed, 42 insertions, 46 deletions
diff --git a/ChangeLog b/ChangeLog
index def3003..10e408c 100644
--- 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.
diff --git a/Makefile.am b/Makefile.am
index 3797d76..f2598b1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
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: