1 |
VERSION = 0.14.1 |
2 |
NAME = drakmenustyle |
3 |
SUBDIRS = po |
4 |
localedir = $(DESTDIR)/usr/share/locale |
5 |
RPM=$(HOME)/rpm |
6 |
mcc_dir = $(DESTDIR)/usr/share/mcc |
7 |
|
8 |
override CFLAGS += -DPACKAGE=\"$(NAME)\" -DLOCALEDIR=\"$(localedir)\" |
9 |
|
10 |
all: |
11 |
for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done |
12 |
|
13 |
clean: |
14 |
$(MAKE) -C po $@ |
15 |
rm -f *~ core .#*[0-9] core.* *.bak |
16 |
for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done |
17 |
|
18 |
install: all |
19 |
$(MAKE) -C po $@ |
20 |
install -d $(DESTDIR)/usr/{bin/,share/icons} |
21 |
install -m755 $(NAME) $(DESTDIR)/usr/bin/$(NAME) |
22 |
for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done |
23 |
|
24 |
dis: clean |
25 |
rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar* |
26 |
svn export -q -rBASE . $(NAME)-$(VERSION) |
27 |
find $(NAME)-$(VERSION) -name '*.pl' -o -name drakmenustyle | xargs perl -pi -e 's/\s*use\s+(diagnostics|vars|strict).*//g' |
28 |
tar cjf ../$(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION) |
29 |
rm -rf $(NAME)-$(VERSION) |
30 |
|
31 |
changelog: |
32 |
svn2cl --authors ../common/username.xml --accum |
33 |
rm -f ChangeLog.bak |
34 |
|
35 |
|
36 |
log: changelog |