From b89adb3b3530751485984d08f1c2771593d3b79e Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Mon, 5 Jan 2004 22:09:27 +0000 Subject: use %_topdir instead /home/users/olivier --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 171ee8e..188d6f4 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ ALL_STATIC = $(FROMC_STATIC) $(FROMCC_STATIC) CFLAGS = -Wall -g LIBRPM = -lrpm -lrpmio `perl -e 'local $$_ = qx(rpm -q --qf %{VERSION} rpm); /^4\.0\s*$$/ or print "-lrpmdb"'` -lz -lbz2 -I/usr/include/rpm -lpopt LIBRPM_STATIC = -RPM=$(HOME)/rpm +RPM = `rpm --eval %_topdir` all: $(ALL) echo $(INSTALLVENDORLIB) @@ -45,7 +45,7 @@ dis: clean bzip2 -9f ../$(NAME)-$(VERSION).tar rm -rf $(NAME)-$(VERSION) -rpm: dis ../$(NAME)-$(VERSION).tar.bz2 $(RPM) +rpm: dis ../$(NAME)-$(VERSION).tar.bz2 cp -f ../$(NAME)-$(VERSION).tar.bz2 $(RPM)/SOURCES cp -f $(NAME).spec $(RPM)/SPECS/ -rpmbuild -ba --clean --rmsource $(NAME).spec -- cgit v1.2.1