mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-18 00:19:56 +00:00
dd740ac1b1
Porting from NSPR_4_5_BRANCH.
44 lines
1.4 KiB
Makefile
44 lines
1.4 KiB
Makefile
#
|
|
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
|
|
# Use is subject to license terms.
|
|
#
|
|
#ident "$Id: Makefile.in,v 1.3 2004/11/29 16:26:02 christophe.ravel.bugs%sun.com Exp $"
|
|
#
|
|
|
|
MOD_DEPTH = ../..
|
|
topsrcdir = @top_srcdir@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
NAME = sun-nspr
|
|
RELEASE = 2
|
|
TOPDIR = /usr/src/redhat
|
|
VERSION = `grep PR_VERSION $(dist_includedir)/prinit.h \
|
|
| sed -e 's/"$$//' -e 's/.*"//' -e 's/ .*//'`
|
|
|
|
SPECFILE = $(NAME).spec
|
|
|
|
include $(MOD_DEPTH)/config/autoconf.mk
|
|
|
|
publish:
|
|
$(MAKE) clean
|
|
mkdir -p SOURCES SRPMS RPMS BUILD
|
|
(cd $(MOD_DEPTH)/../../dist/$(RELEASE_OBJDIR_NAME)/lib && tar cphf - .) \
|
|
| (mkdir -p opt/sun/private/lib && cd opt/sun/private/lib && tar xvfBp -)
|
|
(cd $(MOD_DEPTH)/../../dist/$(RELEASE_OBJDIR_NAME)/include && tar cphf - .) \
|
|
| (mkdir -p opt/sun/private/include/nspr && cd opt/sun/private/include/nspr && tar xvfBp -)
|
|
tar czvf SOURCES/$(NAME)-$(VERSION).tar.gz opt
|
|
echo "%define name $(NAME)" >$(SPECFILE)
|
|
echo "%define version $(VERSION)" >>$(SPECFILE)
|
|
echo "%define release $(RELEASE)" >>$(SPECFILE)
|
|
echo "%define buildroot `pwd`/$(NAME)-root" >>$(SPECFILE)
|
|
echo "%define _topdir `pwd`" >>$(SPECFILE)
|
|
cat $(srcdir)/$(NAME).spec >>$(SPECFILE)
|
|
rpm -ba $(SPECFILE)
|
|
|
|
clean:
|
|
rm -rf $(TOPDIR)/BUILD/$(NAME)
|
|
rm -rf SOURCES SRPMS RPMS BUILD
|
|
rm -rf RPMS SRPMS opt
|
|
rm -f $(NAME)-$(VERSION).tar.gz
|