summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index afa532c5..279124fb 100644
--- a/Makefile
+++ b/Makefile
@@ -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 $@