2001-01-11 00:32:10 +08:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
BINDIRS = \
|
2001-09-22 10:42:08 +08:00
|
|
|
osg-${OSGVERSION}/bin/\
|
|
|
|
osg-${OSGVERSION}/include/\
|
|
|
|
osg-${OSGVERSION}/lib/\
|
2001-01-11 00:32:10 +08:00
|
|
|
|
|
|
|
all :: rpm
|
|
|
|
|
|
|
|
|
|
|
|
rpm : osg.spec tardist
|
|
|
|
rpm -bb --clean osg.spec
|
|
|
|
|
|
|
|
|
|
|
|
osg.spec : makespec
|
2001-09-22 10:42:08 +08:00
|
|
|
./makespec
|
2001-01-11 00:32:10 +08:00
|
|
|
|
|
|
|
tardist :
|
|
|
|
@[ -n "${OSGHOME}" ] || (echo Please define OSGHOME; exit 3)
|
|
|
|
@[ -n "${OSGVERSION}" ] || (echo Please define OSGVERSION; exit 4)
|
|
|
|
@[ -n "${OSGRELEASE}" ] || (echo Please define OSGRELEASE; exit 5)
|
|
|
|
@[ "`whoami`" = "root" ] || (echo Must be ROOT; exit 6)
|
|
|
|
(cd ${OSGHOME}/..; \
|
|
|
|
tar cf - ${BINDIRS} | gzip > \
|
2001-09-22 10:42:08 +08:00
|
|
|
/usr/src/redhat/SOURCES/osg-${OSGVERSION}.tar.gz)
|
2001-01-11 00:32:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
clean :
|
|
|
|
rm -f osg.spec
|