summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 13431532dd6e68f1a43d4ae76e231bea6a9e6b35 (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
NAME = draklive-install
VERSION = 1.24

dli_confdir = ${sysconfdir}/$(NAME).d
dli_sysconfigdir = $(dli_confdir)/sysconfig

all: mandriva-draklive-install.desktop draklive-install.desktop
	make -C po

install:
	install -d $(dli_sysconfigdir)
	make -C po install

dist: dis 
dis: clean
	rm -rf ../$(NAME)-$(VERSION)*.tar* $(NAME)-$(VERSION) 
	@if [ -e ".svn" ]; then \
		$(MAKE) dist-svn; \
	elif [ -e ".git" ]; then \
		$(MAKE) dist-git; \
	else \
		echo "Unknown SCM (not SVN nor GIT)";\
		exit 1; \
	fi;
	$(info $(NAME)-$(VERSION).tar.lzma is ready)
 
dist-svn: 
	svn export -q -rBASE . $(NAME)-$(VERSION)
	tar cfY ../$(NAME)-$(VERSION).tar.lzma $(NAME)-$(VERSION) 
	rm -rf $(NAME)-$(VERSION) 
 
dist-git: 
	@git archive --prefix=$(NAME)-$(VERSION)/ HEAD | lzma >../$(NAME)-$(VERSION).tar.lzma; 

check:
	perl -cw $(NAME)

clean:
	make -C po clean
	find -name '*~' -exec rm {} \;

.PHONY: ChangeLog log changelog

log: ChangeLog

changelog: ChangeLog

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

%.desktop: %.desktop.in
	intltool-merge --utf8 po \$< \$@ -d -u -c intltool-merge-cache