Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (23 sloc) 1.139 kB
# Temporary makefile for building in the XenServer build system; this
# will be removed once we've properly integrated mock.
include $(B_BASE)/common.mk
include $(B_BASE)/rpmbuild.mk
REPO = $(call git_loc,filesystem-summarise)
.PHONY: $(MY_OUTPUT_DIR)/SRPMS
$(MY_OUTPUT_DIR)/SRPMS:
mkdir -p $(MY_OUTPUT_DIR)/SRPMS
$(MAKE) RPM_SOURCESDIR=$(RPM_SOURCESDIR) RPM_SRPMSDIR=$(RPM_SRPMSDIR) -C $(REPO) -f Makefile srpm
build: $(MY_SOURCES)/MANIFEST $(MY_OUTPUT_DIR)/SRPMS
mkdir -p $(MY_OUTPUT_DIR)/RPMS/$(DOMAIN0_ARCH_OPTIMIZED)
$(RPMBUILD) --rebuild --target $(DOMAIN0_ARCH_OPTIMIZED) $(MY_OUTPUT_DIR)/SRPMS/filesystem_summarise-*.src.rpm
mkdir -p $(MY_MAIN_PACKAGES)
# Deliberately omit the debuginfo package (filesystem_summarise-debuginfo-0...)
cp $(MY_OUTPUT_DIR)/RPMS/$(DOMAIN0_ARCH_OPTIMIZED)/filesystem_summarise-0*.rpm $(MY_MAIN_PACKAGES)
$(MY_SOURCES)/MANIFEST: $(MY_OUTPUT_DIR)/SRPMS
rm -f $@
mkdir -p $(MY_SOURCES)
/bin/sh ./srpms-to-manifest filesystem-summarise $(MY_OUTPUT_DIR)/SRPMS > $@
.PHONY: clean
clean:
rm -f $(MY_SOURCES)/MANIFEST $(MY_OUTPUT_DIR)/SRPMS/*
rmdir $(MY_OUTPUT_DIR)/SRPMS
Jump to Line
Something went wrong with that request. Please try again.