# Copyright: 2008-2009 Gentoo Foundation # Author(s): Nirbheek Chauhan # 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)"