| 1 |
# Makefile for spell-ga/rpm, |
| 2 |
# |
| 3 |
# Copyright (C) Alastair McKinstry, 1997,1998, 2002 |
| 4 |
# Released under the GNU Public License |
| 5 |
# |
| 6 |
# $Id: $ |
| 7 |
# |
| 8 |
|
| 9 |
# This Makefile builds the RPM files as necessary |
| 10 |
# Called from the top-level makefile '$MAKE rpm', with kit |
| 11 |
|
| 12 |
VERSION=2.0 |
| 13 |
TARFILE=iirish_${VERSION}.orig.tar.gz |
| 14 |
|
| 15 |
|
| 16 |
ifndef RPM_SOURCE_DIR |
| 17 |
RPM_SOURCE_DIR=/usr/src/rpm/SOURCES |
| 18 |
endif |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
rpm: iirish.spec ../../${TARFILE} |
| 23 |
cp ../../${TARFILE} ${RPM_SOURCE_DIR} |
| 24 |
rpm -ba -vv iirish.spec |
| 25 |
|
| 26 |
clean: |
| 27 |
rm -f *~ *# *.log *.spec |
| 28 |
|
| 29 |
iirish.spec: iirish.spec.sed |
| 30 |
sed 's/@VERSION@/${VERSION}/' < $< > $@ |
| 31 |
|
| 32 |
# if the Debian-style tarfile doesn't exist, build it |
| 33 |
../../${TARFILE}: |
| 34 |
( cd ../.. ; tar zcpf ${TARFILE} iirish-${VERSION} ) |