aboutsummaryrefslogtreecommitdiff
blob: aa07a912907b1f403f8df9b3fdba8627e8a9e2f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2008-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

include settings.mk

all:

install:
	$(INSTALL_DIR) $(DESTDIR)$(PREFIX)/bin/
	$(INSTALL_EXEC) crossdev $(DESTDIR)$(PREFIX)/bin/
	sed -i -e "s:@GENTOO_PORTAGE_EPREFIX@:$(EPREFIX):g" $(DESTDIR)$(PREFIX)/bin/crossdev
	$(MAKE) -C wrappers install

PV = $(shell test -e .git && date --date="`git log -1 --format=%ci`" +%Y%m%d)
P = crossdev-$(PV)
COMP = xz
dist:
	git archive --prefix=$(P)/ HEAD | sed 's:@CDEVPV@:$(PV):g' > $(P).tar
	-$(COMP) -f $(P).tar
	du -b $(P).tar*

.PHONY: all dist install