Update of /cvsroot/libfunutil/libfunutil/build
In directory sc8-pr-cvs1:/tmp/cvs-serv22029
Added Files:
Makefile
Log Message:
makefile for building rpm's
--- NEW FILE: Makefile ---
include toc.make
TARBALL = $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz
RPM_SPECFILE = libfunUtil.spec
RPM_SPECFILE_IN = libfunUtil.spec.in
all: $(RPM_SPECFILE)
DIST_FILES += Makefile.bt $(RPM_SPECFILE_IN) rpmmacros
atparser = $(top_srcdir)/toc/bin/atsign_parse
$(RPM_SPECFILE): $(RPM_SPECFILE_IN) $(top_srcdir)/toc_shared.make
$(call toc_atparse_file,$@.in,$@, \
BT_PKG_NAME=$(PACKAGE_NAME) BT_PKG_VERSION=$(PACKAGE_VERSION) \
BT_PROG_PERL=$(PERL_BIN))
# I want to be able to build RPMs using an arbitrary location (not require
# that the user be root in order to build packages! or that they've already
# set up their ~/.rpmmacros). --macros didn't seem to have any effect, so
# this sets HOME to $PWD so that rpmbuild finds ./.rpmmacros. Man, I wish
# gendist & inst were available on Linux!
rpm: $(RPM_SPECFILE) .rpmmacros rpmbuild/BUILD rpmbuild/RPMS rpmbuild/SRPMS rpmbuild/$(TARBALL)
HOME=$$PWD rpmbuild -ba $(RPM_SPECFILE)
.rpmmacros: rpmmacros
cp rpmmacros .rpmmacros
rpmbuild/BUILD rpmbuild/RPMS rpmbuild/SRPMS:
-mkdir -p $@
rpmbuild/$(TARBALL): rpmbuild/BUILD
@if ! test -f $(top_srcdir)/$(TARBALL); then \
echo "looking for $(top_srcdir)/$(TARBALL) ... make dist first!"; \
exit 1; \
fi
cp $(top_srcdir)/$(TARBALL) $@
CLEAN_FILES += .rpmmacros $(RPM_SPECFILE)
clean: clean-rpm
clean-rpm:
-rm -rf rpmbuild
|