aboutsummaryrefslogtreecommitdiff
blob: 5c9795d8361972e1940367fd48060bf99d1c9ec7 (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
# Copyright: 2008-2009 Gentoo Foundation
# Author(s): Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
# License: AGPL-3
#

INSTALL	:= install
DISTDIR	:= dist/
BLDDIR	:= build/
PN	:= autotua-master
PV	:= 0.0.1.95
P	:= $(PN)-$(PV)
SUBDIRS	:= icons
MAKE	:= make

all:
	for dir in $(SUBDIRS) ; do ( cd $$dir ; $(MAKE) all ) ; done

dist: $(DISTDIR)/$(P).tar.bz2

$(DISTDIR)/$(P).tar.bz2:
	mkdir -p $(DISTDIR)
	git archive --format=tar --prefix=$(P)/ HEAD | tar x -C $(DISTDIR)
	cp icons/*.png $(DISTDIR)/$(P)/icons/
	tar -C $(DISTDIR) -cjf $(DISTDIR)/$(P).tar.bz2 $(P)/
	rm -rf $(DISTDIR)/$(P)/

clean:
	rm -rf $(BLDDIR) $(DISTDIR)
	for dir in $(SUBDIRS) ; do ( cd $$dir ; $(MAKE) clean ) ; done

install: all
	test -n "$(DESTDIR)" || ( echo "Please define DESTDIR" ; exit 1 )
	for dir in $(SUBDIRS) ; do ( cd $$dir ; $(MAKE) DESTDIR=$(DESTDIR)install ) ; done
	./setup-master.py path-install "$(DESTDIR)"