summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-12-17 00:21:09 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-12-17 00:21:09 +0000
commit2b6d115da4ba39a0b30eb6e014684d82101f3265 (patch)
tree7ead586efca6413473c0b880d976f3dc5d7f2849 /Makefile
parent8bc2804dffe993ded66f55ec4a6d13d9e8ed0bd7 (diff)
downloadurpmi-2b6d115da4ba39a0b30eb6e014684d82101f3265.tar
urpmi-2b6d115da4ba39a0b30eb6e014684d82101f3265.tar.gz
urpmi-2b6d115da4ba39a0b30eb6e014684d82101f3265.tar.bz2
urpmi-2b6d115da4ba39a0b30eb6e014684d82101f3265.tar.xz
urpmi-2b6d115da4ba39a0b30eb6e014684d82101f3265.zip
no_comment
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..43b8cab8
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,33 @@
+PREFIX =
+BINDIR = $(PREFIX)/usr/bin
+MANDIR = $(PREFIX)/usr/man
+SBINDIR = $(PREFIX)/usr/sbin
+XBINDIR = $(PREFIX)/usr/X11R6/bin
+URPMIDIR = $(PREFIX)/etc/urpmi
+LOCALEDIR = $(PREFIX)/usr/share/locale
+
+
+.PHONY: install
+
+install: autoirpm.update-all
+ $(MAKE) -C po $@
+ install -d $(BINDIR) $(SBINDIR) $(XBINDIR) $(URPMIDIR) $(MANDIR)/man8
+ install -m 4755 urpmi $(BINDIR)
+ install _irpm rpm-find-leaves $(BINDIR)
+ install -m 644 autoirpm.deny $(URPMIDIR)
+ for i in *.8; do bzip2 -c $$i > $(MANDIR)/man8/$$i.bz2 ; done
+ install 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 $@
+
+po:
+ $(MAKE) -C $@
+
+clean:
+ $(MAKE) -C po $@
+ rm -f *~ autoirpm.update-all