/[soft]/rpmdrake/trunk/Makefile
ViewVC logotype

Annotation of /rpmdrake/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 600 - (hide annotations) (download)
Sun Feb 20 22:22:30 2011 UTC (10 years, 8 months ago) by ahmad
File size: 2533 byte(s)
- update NEWS, version 5.26.6
1 ahmad 600 VERSION = 5.26.6
2 dmorgan 535 NAME = rpmdrake
3    
4     DIRS = grpmi po data mime
5    
6     PREFIX = /usr/local
7     DATADIR = $(PREFIX)/share
8     BINDIR = $(PREFIX)/bin
9     SBINDIR = $(PREFIX)/sbin
10     RELATIVE_SBIN = ../sbin
11     RPM=$(shell rpm --eval %_topdir)
12     PERL_VENDORLIB=$(DESTDIR)/$(shell perl -V:installvendorlib | perl -pi -e "s/.*=//; s/[;']//g")
13    
14     all: dirs
15    
16     dirs:
17     @for n in . $(DIRS); do \
18     [ "$$n" = "." ] || make -C $$n || exit 1 ;\
19     done
20    
21     install: $(ALL)
22     @for n in $(DIRS); do make -C $$n install; done
23     install -d $(SBINDIR)
24     install rpmdrake MageiaUpdate edit-urpm-sources.pl gurpmi.addmedia $(SBINDIR)
25     install -d $(BINDIR)
26     ln -sf $(RELATIVE_SBIN)/rpmdrake $(BINDIR)/rpmdrake
27     ln -sf $(RELATIVE_SBIN)/MageiaUpdate $(BINDIR)/MageiaUpdate
28     ln -sf $(RELATIVE_SBIN)/edit-urpm-sources.pl $(BINDIR)/edit-urpm-sources.pl
29     ln -sf edit-urpm-sources.pl $(SBINDIR)/drakrpm-edit-media
30     ln -sf $(RELATIVE_SBIN)/drakrpm-edit-media $(BINDIR)/drakrpm-edit-media
31     ln -sf $(RELATIVE_SBIN)/gurpmi.addmedia $(BINDIR)/gurpmi.addmedia
32     ln -sf $(RELATIVE_SBIN)/rpmdrake $(BINDIR)/drakrpm
33     ln -sf $(RELATIVE_SBIN)/MageiaUpdate $(SBINDIR)/drakrpm-update
34     ln -sf $(RELATIVE_SBIN)/drakrpm-update $(BINDIR)/drakrpm-update
35     install -d $(DATADIR)/rpmdrake/icons
36     install -m644 icons/*.png $(DATADIR)/rpmdrake/icons
37     install -m644 gui.lst $(DATADIR)/rpmdrake
38     mkdir -p $(PERL_VENDORLIB)/Rpmdrake
39     install -m 644 rpmdrake.pm $(PERL_VENDORLIB)
40     install -m 644 Rpmdrake/*.pm $(PERL_VENDORLIB)/Rpmdrake
41     perl -pi -e "s/version = 1/version = \'$(VERSION)'/" $(PERL_VENDORLIB)/Rpmdrake/init.pm
42    
43     clean:
44     @for n in $(DIRS); do make -C $$n clean; done
45    
46     dis: clean
47     rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
48     svn export -q -rBASE . $(NAME)-$(VERSION)
49     find $(NAME)-$(VERSION) -name .svnignore |xargs rm -rf
50     find $(NAME)-$(VERSION) -name '*.pm' -o -name rpmdrake -o -name MageiaUpdate | xargs ./simplify-drakx-modules
51     ./simplify-drakx-modules $(NAME)-$(VERSION)/{gurpmi.addmedia,edit-urpm-sources.pl}
52     tar cfa ../$(NAME)-$(VERSION).tar.lzma $(NAME)-$(VERSION)
53     rm -rf $(NAME)-$(VERSION)
54    
55     gui.lst:
56     LC_COLLATE=C; ( echo -e "cedega-mandriva\npicasa\nVariCAD_2009-en\nVariCAD_View_2009-en\nVMware-Player" ; \
57     urpmf "/(opt/kde[43]|usr)/share/((applnk|applications(|/kde)|apps/kicker/applets)/|kde4/services/plasma-applet).*.desktop" |sed -e 's!:.*!!') \
58     | sort | uniq > gui.lst
59    
60     check:
61     rm -f po/*.pot
62     @make -C po rpmdrake.pot
63    
64     .PHONY: ChangeLog log changelog gui.lst
65    
66     log: ChangeLog
67    
68     changelog: ChangeLog
69    
70     ChangeLog:
71     svn2cl --accum --authors ../../soft/common/username.xml
72     rm -f *.bak

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.28