summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 0053454dd9509106983705f5d364cab49f3b7d02 (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
NAME = draklive
VERSION = 0.7

check:
	perl -cw $(NAME)

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

dist: dis 
dis: clean
	rm -f ../$(NAME)-$(VERSION)*.tar*
	@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: 
	rm -rf $(NAME)-$(VERSION) 
	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 | xz >../$(NAME)-$(VERSION).tar.lzma; 

.PHONY: ChangeLog log changelog

log: ChangeLog

changelog: ChangeLog

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