aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-09-02 11:16:52 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-09-02 11:16:52 +0000
commit428745ed6f1ab7eae284dbfd3820b11d04c633f0 (patch)
tree633d4b82f2c95d99fec8c730ed11fa10fba92bc0 /Makefile
parent0431eed48004e1b0a67a0d0e400e36d5c0487d8b (diff)
downloadrpmdrake-428745ed6f1ab7eae284dbfd3820b11d04c633f0.tar
rpmdrake-428745ed6f1ab7eae284dbfd3820b11d04c633f0.tar.gz
rpmdrake-428745ed6f1ab7eae284dbfd3820b11d04c633f0.tar.bz2
rpmdrake-428745ed6f1ab7eae284dbfd3820b11d04c633f0.tar.xz
rpmdrake-428745ed6f1ab7eae284dbfd3820b11d04c633f0.zip
have symlinks in /usr/bin so that normal user has the programs in his path
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 165ae5d7..05c66ce5 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,8 @@ DIRS = grpmi po data
PREFIX = /usr/local
DATADIR = $(PREFIX)/share
BINDIR = $(PREFIX)/bin
+SBINDIR = $(PREFIX)/sbin
+RELATIVE_SBIN = ../sbin
all: dirs
@@ -30,11 +32,14 @@ install: $(ALL)
@for n in $(DIRS); do \
(cd $$n; $(MAKE) install) \
done
- install -d $(BINDIR)
- install rpmdrake edit-urpm-sources.pl $(BINDIR)
- perl -pi -e 's|use strict.*||;s|use vars.*||;s|use diagnostics.*||;s|#-.*||' $(BINDIR)/*
- ln -s -f rpmdrake $(BINDIR)/rpmdrake-remove
- ln -s -f rpmdrake $(BINDIR)/MandrakeUpdate
+ install -d $(SBINDIR)
+ install rpmdrake edit-urpm-sources.pl $(SBINDIR)
+ perl -pi -e 's|use strict.*||;s|use vars.*||;s|use diagnostics.*||;s|#-.*||' $(SBINDIR)/*
+ ln -s -f rpmdrake $(SBINDIR)/rpmdrake-remove
+ ln -s -f rpmdrake $(SBINDIR)/MandrakeUpdate
+ ln -sf $(RELATIVE_SBIN)/rpmdrake $(BINDIR)/rpmdrake
+ ln -sf $(RELATIVE_SBIN)/rpmdrake-remove $(BINDIR)/rpmdrake-remove
+ ln -sf $(RELATIVE_SBIN)/MandrakeUpdate $(BINDIR)/MandrakeUpdate
install -d $(DATADIR)/rpmdrake/icons
install -m644 icons/*.png $(DATADIR)/rpmdrake/icons
install -m644 compssUsers.flat.default $(DATADIR)/rpmdrake