CVS: src/si/rpm Makefile.in,NONE,1.1 Makefile,1.3,NONE

Mats Wichmann <[email protected]>
Newsgroups gmane.linux.lsb.implementation
Message-ID <[email protected]>
Update of /cvsroot/lsb/src/si/rpm
In directory sc8-pr-cvs1:/tmp/cvs-serv17745/rpm

Added Files:
	Makefile.in 
Removed Files:
	Makefile 
Log Message:
Configure rpm/Makefile; means removing original and adding Makefile.in


--- NEW FILE ---
PACKAGE=lsb-umlsi
SI_BUILD_DIR = @BUILDDIR@
BUILDROOT=/var/tmp/lsb-umlsi-root
specf=umlsi.spec
dest=${BUILDROOT}/tmpmnt

all:
	@echo "Building ${PACKAGE}"
	@if [ -e ${BUILDROOT} ] ; then rm -rf ${BUILDROOT} ; fi
	@mkdir -p ${BUILDROOT}/opt/lsb-umlsi/lib
	@mkdir -p ${BUILDROOT}/opt/lsb-umlsi/bin
	@mkdir -p ${BUILDROOT}/etc/opt/lsb-umlsi/lib
	@mkdir -p ${BUILDROOT}/var/opt/lsb-umlsi/lib
	@cp Configure.sh ${BUILDROOT}/opt/lsb-umlsi/bin/Configure
	@cp umlsi.sh ${BUILDROOT}/opt/lsb-umlsi/bin/umlsi
	@-mkdir -p ${dest}
	@dd if=/dev/zero of=${BUILDROOT}/opt/lsb-umlsi/lib/root_fs bs=1M count=200
	@losetup /dev/loop2 ${BUILDROOT}/opt/lsb-umlsi/lib/root_fs
	@mke2fs /dev/loop2
	@tune2fs -j /dev/loop2
	@mount /dev/loop2 ${dest}
	@echo -n "Copying files ... "
	@(cd ${SI_BUILD_DIR}/lsbsi ; find . -print | cpio -pdmu ${dest})
	@(cd ${SI_BUILD_DIR}/lsbsi-uml ; find . -print | cpio -pdmu ${dest})
	@echo "Done."
	@umount /dev/loop2
	@losetup -d /dev/loop2

	@echo -n "Making rpm... "
	@if test -f /usr/bin/rpmbuild; then \
	     rpmbuild -bb ${specf}; \
	else \
	     rpm -bb ${specf}; \
	fi
	@echo "Done."
	@-rm -rf ${BUILDROOT}

install:

clean:
	rm -rf *spec rpmrc rpmmacros i486

distclean: clean
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.