Skip to content

Commit e1304e9

Browse files
committed
Xen 4.1: Query rpm to find build directories.
Allows user with ~/.rpmmacros to build e.g. $ cat ~/.rpmmacros %_topdir /data/rpmbuild %_tmppath /data/tmp Signed-off-by: Ian Campbell <[email protected]> Signed-off-by: Zheng Li <[email protected]>
1 parent 56731b4 commit e1304e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ MY_OUTPUT_DIR ?= $(CURDIR)/output
77
MY_OBJ_DIR ?= $(CURDIR)/obj
88
REPO ?= $(CURDIR)
99

10-
RPM_SPECSDIR?=/usr/src/redhat/SPECS
11-
RPM_SRPMSDIR?=/usr/src/redhat/SRPMS
12-
RPM_SOURCESDIR?=/usr/src/redhat/SOURCES
10+
RPM_SPECSDIR?=$(shell rpm --eval='%_specdir')
11+
RPM_SRPMSDIR?=$(shell rpm --eval='%_srcrpmdir')
12+
RPM_SOURCESDIR?=$(shell rpm --eval='%_sourcedir')
1313
RPMBUILD?=rpmbuild
1414
XEN_RELEASE?=unknown
1515
endif

0 commit comments

Comments
 (0)