summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-03-26 17:24:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-03-26 17:24:04 +0000
commita982d562a19e1bf9d421cc64127635e403dd3f39 (patch)
tree0d50576692fb37646fb5c4fd837e55eab88f7f7f /Makefile
parente922549802d625842f87ce2e1857685074f6b344 (diff)
downloadurpmi-a982d562a19e1bf9d421cc64127635e403dd3f39.tar
urpmi-a982d562a19e1bf9d421cc64127635e403dd3f39.tar.gz
urpmi-a982d562a19e1bf9d421cc64127635e403dd3f39.tar.bz2
urpmi-a982d562a19e1bf9d421cc64127635e403dd3f39.tar.xz
urpmi-a982d562a19e1bf9d421cc64127635e403dd3f39.zip
no_comment
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 01c0dbde..bb4e5a91 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
- PREFIX =
+PREFIX =
BINDIR = $(PREFIX)/usr/bin
MANDIR = $(PREFIX)/usr/man
SBINDIR = $(PREFIX)/usr/sbin
@@ -6,6 +6,8 @@ XBINDIR = $(PREFIX)/usr/X11R6/bin
URPMIDIR = $(PREFIX)/var/lib/urpmi
URPMIDIR2 = $(PREFIX)/etc/urpmi
LOCALEDIR = $(PREFIX)/usr/share/locale
+CFLAGS = -Wall -g
+LIBRPM = -lrpm -ldb1 -lz -lbz2 -I/usr/include/rpm -lpopt
NAME = urpmi
TAR = $(NAME).tar.bz2
@@ -19,14 +21,14 @@ install: autoirpm.update-all
install _irpm rpm-find-leaves rpmf $(BINDIR)
install -m 644 autoirpm.deny $(URPMIDIR2)
install -m 644 *.8 $(MANDIR)/man8
- install urpmi.addmedia autoirpm.update autoirpm.uninstall $(SBINDIR)
+ install rpme urpmi.addmedia autoirpm.update autoirpm.uninstall $(SBINDIR)
install -s autoirpm.update-all $(SBINDIR)
ln -sf urpmi.addmedia $(SBINDIR)/urpmi.removemedia
ln -sf urpmi.addmedia $(SBINDIR)/urpmi.update
install gurpmi $(XBINDIR)
-autoirpm.update-all: %: %.cc
- $(CXX) -I/usr/include/rpm -g $< -lrpm -ldb1 -lz -o $@
+autoirpm.update-all: %: %.cc
+ $(CXX) $(CFLAGS) $< $(LIBRPM) -o $@
tar: clean
cd .. ; tar cfy $(TAR) urpmi