diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-01-04 00:02:06 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-01-04 00:02:06 +0000 |
commit | f041fbb500d8d8e272e72a87feccb8d8843f1204 (patch) | |
tree | cdbf97b370fbdcfe58f300cc79e55b84100289f7 /Makefile | |
parent | 02378b711e6754e6946fd9cf1e1706aaeb20e749 (diff) | |
download | urpmi-f041fbb500d8d8e272e72a87feccb8d8843f1204.tar urpmi-f041fbb500d8d8e272e72a87feccb8d8843f1204.tar.gz urpmi-f041fbb500d8d8e272e72a87feccb8d8843f1204.tar.bz2 urpmi-f041fbb500d8d8e272e72a87feccb8d8843f1204.tar.xz urpmi-f041fbb500d8d8e272e72a87feccb8d8843f1204.zip |
no_comment
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -7,14 +7,16 @@ URPMIDIR = $(PREFIX)/var/lib/urpmi URPMIDIR2 = $(PREFIX)/etc/urpmi LOCALEDIR = $(PREFIX)/usr/share/locale +NAME = urpmi +TAR = $(NAME).tar.bz2 -.PHONY: install clean +.PHONY: install clean rpm install: autoirpm.update-all $(MAKE) -C po $@ install -d $(BINDIR) $(SBINDIR) $(XBINDIR) $(URPMIDIR) $(URPMIDIR2) $(MANDIR)/man8 install -m 4755 urpmi $(BINDIR) - install _irpm rpm-find-leaves $(BINDIR) + install _irpm rpm-find-leaves rpmf $(BINDIR) install -m 644 autoirpm.deny $(URPMIDIR2) for i in *.8; do bzip2 -c $$i > $(MANDIR)/man8/$$i.bz2 ; done install urpmi.addmedia autoirpm.update autoirpm.uninstall $(SBINDIR) @@ -27,7 +29,13 @@ autoirpm.update-all: %: %.cc $(CXX) -I/usr/include/rpm -g $< -lrpm -ldb1 -lz -o $@ tar: clean - cd .. ; tar cfy urpmi.tar.bz2 urpmi + cd .. ; tar cfy $(TAR) urpmi + +rpm: tar + cp -f ../$(TAR) $(RPM)/SOURCES + cp -f $(NAME).spec $(RPM)/SPECS/ + -rpm -ba $(NAME).spec + rm -f ../$(TAR) po: $(MAKE) -C $@ |