blob: df95c2434d98545b7103a28b086de8e5bc30f8db (
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
|
# Copyright: 2008-09 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.2
P := $(PN)-$(PV)
SUBDIRS := icons
MAKE := make
all:
for dir in $(SUBDIRS) ; do ( cd $$dir ; $(MAKE) all ) ; done
dist:
mkdir -p $(DISTDIR)
git archive --format=tar --prefix=$(P)/ HEAD | tar x -C $(DISTDIR)
cp icons/*.png $(DISTDIR)/$(P)/icons/
tar -C $(DISTDIR) -cjf $(P).tar.bz2 $(P)/
rm -rf $(DISTDIR)
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 )
./setup-master.py install --final $(DESTDIR)
|