summaryrefslogtreecommitdiffstats
path: root/live/draklive-install/Makefile
blob: 8f9b9f4ae0d670b15412cf069a4aa082639b2ab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
NAME = draklive-install
VERSION := $(shell rpm -q --qf '%{VERSION}\n' --specfile $(NAME).spec | head -1)
RELEASE := $(shell rpm -q --qf '%{RELEASE}\n' --specfile $(NAME).spec | head -1)

rpm: dis
	rpm -tb ../$(NAME)-$(VERSION).tar.bz2

check:
	perl -cw $(NAME)

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

dis ../$(NAME)-$(VERSION).tar.bz2: clean check
	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)