[BACK]Return to Makefile.am CVS log [TXT][DIR] Up to [Development] / failsafe / FailSafe-mgr / build / rpm

File: [Development] / failsafe / FailSafe-mgr / build / rpm / Makefile.am (download)

Revision 1.3, Mon Jul 24 22:36:22 2000 UTC (17 years, 3 months ago) by rusty
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -0 lines

Added GPL/LGPL copyright headers & documentation for open source release, and removed CXFS stuff

#  Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.

include $(top_srcdir)/common.am

#  Any architecture listed in BuildArchitectures in the spec file needs to
#  be here as well.
BuildArchitectures = i386
SPECFILE = rpm.spec
TARBALL = $(PACKAGE)-$(VERSION).tar.gz
RPMROOT = rpmroot

rpm: $(SPECFILE)
	@if test ! -e $(top_srcdir)/$(TARBALL); then \
	    echo 'You need to "make dist" in the top-level directory first!'; \
	    exit 1; \
	fi;
	@for d in SOURCES SPECS SRPMS BUILD tmp; do \
	    test -d "$(RPMROOT)/$$d" || mkdir -p $(RPMROOT)/$$d; \
	done; \
	for d in $(BuildArchitectures); do \
	    test -d "$(RPMROOT)/RPMS/$$d" || mkdir -p $(RPMROOT)/RPMS/$$d; \
	done; \
	rm -f $(RPMROOT)/SOURCES/$(TARBALL)
	ln -s $(top_srcdir)/../../$(TARBALL) $(RPMROOT)/SOURCES
	rpm --define "_topdir $$PWD/$(RPMROOT)" -ba $(SPECFILE)
	mv $(RPMROOT)/RPMS/*/*.rpm $(RPMROOT)/SRPMS/*.rpm .
	rm -rf $(RPMROOT)
	@echo "  *  "; \
	echo "  *  "; \
	echo "  *  RPMs in $$PWD:"; \
	echo "  *  "; \
	echo "  *  "; \
	ls -1 *.rpm

clean-local:
	test ! -e $(RPMROOT) || rm -rf $(RPMROOT)

EXTRA_DIST = $(SPECFILE).in
CLEANFILES = $(shell ls *.rpm)