From 2417807070171222f84c96b9c18749969801ad88 Mon Sep 17 00:00:00 2001 From: Maxim Kulkin Date: Tue, 16 Oct 2012 16:11:00 +0400 Subject: [PATCH] Fix bug with RPM repository being rebuilt every time --- packages/rpm/module.mk | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/rpm/module.mk b/packages/rpm/module.mk index 35b1f229f..aaceda3a9 100644 --- a/packages/rpm/module.mk +++ b/packages/rpm/module.mk @@ -2,10 +2,6 @@ $/%: /:=$/ -.PHONY: rpm - -rpm: $/RPMS/x86_64/cirros-uec-0.3.0-1.x86_64.rpm - SRC_FILES:=cirros-0.3.0-x86_64-uec.tar.gz ifeq ($(IGNORE_MIRROR),1) define SRC_URLS @@ -23,10 +19,10 @@ else SRC_DIR:=$/SOURCES/ endif -$/RPMS/x86_64/cirros-uec-0.3.0-1.x86_64.rpm: $/SOURCES/cirros-0.3.0-x86_64-uec.tar.gz +$/RPMS/x86_64/cirros-uec-0.3.0-1.x86_64.rpm: $/SOURCES/cirros-0.3.0-x86_64-uec.tar.gz packages/rpm/specs/cirros-0.3.0.spec rpmbuild -vv --define "_topdir `readlink -f $/`" -ba packages/rpm/specs/cirros-0.3.0.spec -$(BUILD_DIR)/packages/rpm/rpm.done: rpm +$(BUILD_DIR)/packages/rpm/rpm.done: $/RPMS/x86_64/cirros-uec-0.3.0-1.x86_64.rpm $(ACTION.TOUCH) $(addprefix $(SRC_DIR),$(SRC_FILES)):