summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 3b90620b44fb2dd93df7878a68e01db3e99e1c8b (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
VERSION = 0.10
NAME = drakmenustyle
SUBDIRS = po 
localedir = $(DESTDIR)/usr/share/locale
RPM=$(HOME)/rpm
mcc_dir = $(DESTDIR)/usr/share/mcc

override CFLAGS += -DPACKAGE=\"$(NAME)\" -DLOCALEDIR=\"$(localedir)\"

all: 
	for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done

clean:
	$(MAKE) -C po $@
	rm -f *~ core .#*[0-9] core.* *.bak
	for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done

install: all
	$(MAKE) -C po $@
	install -d $(DESTDIR)/usr/{bin/,share/icons}
	install -m755 $(NAME) $(DESTDIR)/usr/bin/$(NAME)
	for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done

dis: clean
	rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
	svn export -q -rBASE . $(NAME)-$(VERSION)
	find $(NAME)-$(VERSION) -name '*.pl' -o -name drakmenustyle | xargs perl -pi -e 's/\s*use\s+(diagnostics|vars|strict).*//g'
	tar cjf ../$(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
	rm -rf $(NAME)-$(VERSION)

changelog:
	svn2cl --authors ../common/username.xml --accum
	rm -f ChangeLog.bak


log: changelog