blob: 49907295bfd507d609b93022c12bb94e4f5a5540 (
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
55
56
57
58
|
NAME=bootsplash
VERSION := $(shell sed -n 's/%define version //p' < $(NAME).spec)
RELEASE := $(shell sed -n 's/%define release //p' < $(NAME).spec)
RELTAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__')
SUBDIRS=scripts fb fbmngplay fbtruetype splash po
DATADIRS=themes/data/
CONFIGDIRS=themes/config/
THEMES=Mandrake
prefix=/
sharedir=/usr/share
configdir=/etc
RPM=$(HOME)/rpm
all:
@for i in $(SUBDIRS);do make -C $$i all;done
install:
@mkdir -p $(prefix)$(sharedir)/bootsplash/themes/
@mkdir -p $(prefix)$(configdir)/bootsplash/themes/
@for i in $(SUBDIRS);do make -C $$i install;done
@for i in $(DATADIRS);do for t in $(THEMES); do cp -a $$i/$$t $(prefix)$(sharedir)/bootsplash/themes/;done; done
@for i in $(CONFIGDIRS);do for t in $(THEMES); do install -d $(prefix)/$(configdir)/bootsplash/themes/$$t/config; cp -a $(CONFIGDIRS)/$$t/cfg/* $(prefix)$(configdir)/bootsplash/themes/$$t/config/;done ;done
@for d in 800x600 1024x768; do for v in 1 2 3; do ln -s vt0-$$d.cfg $(prefix)$(configdir)/bootsplash/themes/Mandrake/config/vt$$v-$$d.cfg; done; done
dis: clean
rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
mkdir -p $(NAME)-$(VERSION)
find . -not -name "$(NAME)-$(VERSION)"|cpio -pd $(NAME)-$(VERSION)/
find $(NAME)-$(VERSION) -type d -name CVS -o -name .cvsignore -o -name unused |xargs rm -rf
tar cf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION)
bzip2 -9f ../$(NAME)-$(VERSION).tar
rm -rf $(NAME)-$(VERSION)
clean:
@for i in $(SUBDIRS);do make -C $$i clean;done
rm -f *~ \#*\#
changelog: ../common/username
( cvs2cl -U ../common/username -I ChangeLog -I tmp/ ; \
rm -f ChangeLog.bak ; \
cvs commit -m "Generated by cvs2cl the `date '+%c'`" ChangeLog ; \
)
cvstag:
cvs commit
cvs tag $(RELTAG)
rpm: changelog cvstag dis ../$(NAME)-$(VERSION).tar.bz2 $(RPM)
cp -f ../$(NAME)-$(VERSION).tar.bz2 $(RPM)/SOURCES
-rpm -ba --clean $(NAME).spec
rm -f ../$(NAME)-$(VERSION).tar.bz2
localrpm: dis ../$(NAME)-$(VERSION).tar.bz2 $(RPM)
cp -f ../$(NAME)-$(VERSION).tar.bz2 $(RPM)/SOURCES
-rpm -ba --clean $(NAME).spec
rm -f ../$(NAME)-$(VERSION).tar.bz2
|