blob: 116181109f368f3089ad9edd4b6f4a4555af359b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
PREFIX =
BINDIR = $(PREFIX)/usr/bin
MANDIR = $(PREFIX)/usr/man
SBINDIR = $(PREFIX)/usr/sbin
URPMIDIR = $(PREFIX)/var/lib/urpmi
URPMIDIR2 = $(PREFIX)/etc/urpmi
RPM=$(shell rpm --eval %_topdir)
NAME = urpmi
TAR = $(NAME).tar.bz2
.PHONY: install clean rpm test ChangeLog
install:
$(MAKE) -C po $@
install -d $(BINDIR) $(SBINDIR) $(URPMIDIR) $(URPMIDIR2) $(MANDIR)/man5 $(MANDIR)/man8
install urpmq $(BINDIR)
install rpm-find-leaves urpmf $(BINDIR)
install -m 644 skip.list $(URPMIDIR2)
install -m 644 man/C/urpm*.5 $(MANDIR)/man5
install -m 644 man/C/proxy*.5 $(MANDIR)/man5
install -m 644 man/C/urpm*.8 $(MANDIR)/man8
install -m 644 man/C/rurpmi.8 $(MANDIR)/man8
install urpmi urpme urpmi.addmedia urpmi.update urpmi.removemedia rurpmi $(SBINDIR)
install gurpmi $(BINDIR)
install gurpmi2 $(SBINDIR)
ln -s -f ../../usr/bin/consolehelper $(BINDIR)/gurpmi2
for i in man/??* ; \
do install -d $(MANDIR)/`basename $$i`/man8 ; \
install -m 644 $$i/urpm*.8 $(MANDIR)/`basename $$i`/man8 ; \
done
test:
prove t/*.t
tar: clean
cd .. ; tar cf - urpmi | bzip2 -9 >$(TAR)
rpm: tar
cp -f ../$(TAR) $(RPM)/SOURCES
cp -f $(NAME).spec $(RPM)/SPECS
-rpm -ba --clean $(NAME).spec
rm -f ../$(TAR)
po:
$(MAKE) -C $@
clean:
$(MAKE) -C po $@
rm -f *~ autoirpm.update-all
ChangeLog:
cvs2cl -W 400 -I ChangeLog --accum -U ../../soft/common/username
rm -f *.bak
|