aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-02-22 12:00:59 +0000
committerThierry Vignaud <tv@mandriva.org>2007-02-22 12:00:59 +0000
commit538c5aa7fb42c95179734da8486edae738af4307 (patch)
treed13f757b3702d5732c1be1f90ce82b5768feeeb1 /Makefile
parentded6ddc429f13896cd0f3156417ca982abbc86ac (diff)
downloadrpmdrake-538c5aa7fb42c95179734da8486edae738af4307.tar
rpmdrake-538c5aa7fb42c95179734da8486edae738af4307.tar.gz
rpmdrake-538c5aa7fb42c95179734da8486edae738af4307.tar.bz2
rpmdrake-538c5aa7fb42c95179734da8486edae738af4307.tar.xz
rpmdrake-538c5aa7fb42c95179734da8486edae738af4307.zip
fix install
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 61585083..09e43ae2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION = 3.25
+VERSION = 3.28
NAME = rpmdrake
DIRS = grpmi po data
@@ -9,6 +9,8 @@ BINDIR = $(PREFIX)/bin
SBINDIR = $(PREFIX)/sbin
RELATIVE_SBIN = ../sbin
RPM=$(shell rpm --eval %_topdir)
+PERL_VENDORLIB=$(DESTDIR)/$(shell perl -V:installvendorlib | perl -pi -e "s/.*=//; s/[;']//g")
+PERL_VENDORARCH=$(DESTDIR)/$(shell perl -V:installvendorarch | perl -pi -e "s/.*=//; s/[;']//g")
all: dirs
@@ -22,9 +24,8 @@ install: $(ALL)
(cd $$n; $(MAKE) install) \
done
install -d $(SBINDIR)
- install rpmdrake park-rpmdrake edit-urpm-sources.pl gurpmi.addmedia $(SBINDIR)
+ install rpmdrake park-rpmdrake MandrivaUpdate edit-urpm-sources.pl gurpmi.addmedia $(SBINDIR)
ln -sf rpmdrake $(SBINDIR)/rpmdrake-remove
- ln -sf rpmdrake $(SBINDIR)/MandrivaUpdate
install -d $(BINDIR)
ln -sf $(RELATIVE_SBIN)/rpmdrake $(BINDIR)/rpmdrake
ln -sf $(RELATIVE_SBIN)/rpmdrake-remove $(BINDIR)/rpmdrake-remove
@@ -40,6 +41,9 @@ install: $(ALL)
install -d $(DATADIR)/rpmdrake/icons
install -m644 icons/*.png $(DATADIR)/rpmdrake/icons
install -m644 compssUsers.flat.default $(DATADIR)/rpmdrake
+ mkdir -p $(PERL_VENDORLIB)/Rpmdrake
+ install -m 644 rpmdrake.pm $(PERL_VENDORLIB)
+ install -m 644 Rpmdrake/*.pm $(PERL_VENDORLIB)/Rpmdrake
clean:
@for n in $(DIRS); do \