summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 1a705bbc66f012a9eb66f2bd9db671d311865803 (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
PACKAGE = mageiawelcome
VERSION = 0.8.13
GITPATH = git://git.mageia.org/software/mageiawelcome

TEXT_FILES = Makefile

DIRS = etc usr po

FILES = $(TEXT_FILES) $(DIRS) LICENSE

clean:
	rm -f *~ \#*\#

cleandist: clean
	rm -fr $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.xz

install:
	make -C po DESTDIR=$(RPM_BUILD_ROOT)/usr install
	
dir:
	mkdir $(PACKAGE)-$(VERSION)

localcopy: dir
	tar c --exclude=.git $(FILES) | tar x -C $(PACKAGE)-$(VERSION)

tar: localcopy
	tar cvYf $(PACKAGE)-$(VERSION).tar.xz $(PACKAGE)-$(VERSION)
	rm -fr $(PACKAGE)-$(VERSION)

dist: cleandist dir localcopy tar