2003-02-04 04:45:28 +03:00
|
|
|
#
|
|
|
|
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
|
|
|
|
# Use is subject to license terms.
|
|
|
|
#
|
2003-02-13 04:57:42 +03:00
|
|
|
#ident "$Id: Makefile.in,v 1.2 2003/02/13 01:57:42 wtc%netscape.com Exp $"
|
2003-02-04 04:45:28 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
MOD_DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
NAME = sun-nspr
|
|
|
|
RELEASE = 1
|
|
|
|
TOPDIR = /usr/src/redhat
|
2003-02-13 04:57:42 +03:00
|
|
|
VERSION = `grep PR_VERSION $(dist_includedir)/prinit.h \
|
|
|
|
| sed -e 's/"$$//' -e 's/.*"//' -e 's/ .*//'`
|
2003-02-04 04:45:28 +03:00
|
|
|
|
|
|
|
include $(MOD_DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
publish:
|
|
|
|
$(MAKE) clean
|
|
|
|
mkdir -p usr/lib/mps
|
|
|
|
cp -L $(MOD_DEPTH)/dist/lib/* usr/lib/mps
|
|
|
|
mkdir -p usr/include/mps
|
|
|
|
cp -Lr $(MOD_DEPTH)/dist/include/* usr/include/mps
|
2003-02-13 04:57:42 +03:00
|
|
|
tar czvf $(NAME)-$(VERSION).tar.gz usr
|
2003-02-04 04:45:28 +03:00
|
|
|
echo "%define name $(NAME)" >$(NAME).spec
|
|
|
|
echo "%define version $(VERSION)" >>$(NAME).spec
|
|
|
|
echo "%define release $(RELEASE)" >>$(NAME).spec
|
|
|
|
|
|
|
|
cat $(srcdir)/$(NAME).spec >>$(NAME).spec
|
2003-02-13 04:57:42 +03:00
|
|
|
cp $(NAME)-$(VERSION).tar.gz $(TOPDIR)/SOURCES
|
2003-02-04 04:45:28 +03:00
|
|
|
rpm -ba $(NAME).spec
|
|
|
|
if [ ! -d RPMS ] ; then mkdir -p RPMS ; fi
|
|
|
|
if [ ! -d SRPMS ] ; then mkdir -p SRPMS ; fi
|
2003-02-13 04:57:42 +03:00
|
|
|
cp -v $(TOPDIR)/RPMS/i386/$(NAME)-$(VERSION)-* RPMS
|
|
|
|
cp -v $(TOPDIR)/RPMS/i386/$(NAME)-devel-$(VERSION)-* RPMS
|
|
|
|
cp -v $(TOPDIR)/SRPMS/$(NAME)-$(VERSION)-* SRPMS
|
2003-02-04 04:45:28 +03:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(TOPDIR)/BUILD/$(NAME)
|
|
|
|
rm -rf RPMS SRPMS usr
|
2003-02-13 04:57:42 +03:00
|
|
|
rm -f $(NAME)-$(VERSION).tar.gz
|