Fix bug with RPM repository being rebuilt every time

This commit is contained in:
Maxim Kulkin 2012-10-16 16:11:00 +04:00 committed by default
parent 867d283e57
commit 2417807070

View File

@ -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)):