1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
# Copyright (C) 1999 Open Source Telecom Corporation.
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
AUTOMAKE_OPTIONS = no-dependencies dist-shar
EXTRA_DIST = reconfig README.WIN32 TODO APE.spec APE.proto pkginfo.in
PKGBASE = "/opt/OSTape"
PKGNAME = "OSTape"
if WIN32
SUBDIRS = win32
else
SUBDIRS = posix
endif
DIST_SUBDIRS = posix win32 m4 config doc
kdoc:
(cd posix ; make kdoc)
rpm: dist
rpm -ta APE-$(VERSION).tar.gz
mv -f /usr/src/redhat/SRPMS/APE-$(VERSION)-*.rpm .
mv -f /usr/src/redhat/RPMS/i386/APE-$(VERSION)-*.rpm .
pkg:
$(MAKE) $(AM_MAKEFLAGS) prefix=$(PKGBASE) install
pkgmk -b $(PKGBASE) -f $(PACKAGE).proto
pkgtrans -s /var/spool/pkg $(PKGNAME)-$(host_alias).pkg $(PKGNAME)
mv /var/spool/pkg/$(PKGNAME)-*.pkg .
rm -rf $(PKGBASE)
rm -rf /var/spool/pkg/$(PKGNAME)
|