aboutsummaryrefslogtreecommitdiff
blob: fdd48a7218da0e8e4d5fb274b23a5bb429ce90e8 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

include makedefs.mak

TOOLS=ebump echangelog ego ekeyword eshowkw eviewcvs imlate
RELEASE="gentoolkit-dev-$(VERSION)$(RELEASE_TAG)"

all:
	@echo "YARMOUTH (vb.) To shout at foreigners in the belief that the louder you speak, the better they'll understand you." 
	@echo "PYVERSION=$(PYVERSION)"
	@echo "VERSION=$(VERSION)"
	@echo "docdir=$(docdir)"
	@echo "bindir=$(bindir)"
	@echo "sbindir=$(sbindir)"
	@echo "mandir=$(mandir)"

# use $(TOOLS) if we have more than one test
test:
	$(MAKE) -C src/echangelog test

clean:
	rm -rf release/
	@for tool in $(TOOLS); do \
		( $(MAKE) -C src/$${tool} clean ) \
	done

dist:
	mkdir -p release/gentoolkit-dev-$(VERSION)$(RELEASE_TAG)
	@for tool in $(TOOLS); do \
		( $(MAKE) -C src/$${tool} distdir=release/$(RELEASE) dist ) \
	done

	cp Makefile AUTHORS README README.Developer TODO COPYING NEWS ChangeLog release/$(RELEASE)/

	@sed -e "s/^VERSION=.*/VERSION=$(VERSION)/" \
		-e "s/^RELEASE_TAG=.*/RELEASE_TAG=$(RELEASE_TAG)/" \
		makedefs.mak > release/$(RELEASE)/makedefs.mak

	( cd release ; tar zcf $(RELEASE).tar.gz $(RELEASE)/ )

install: install-gentoolkit-dev

install-gentoolkit-dev:
	install -d $(docdir)
	install -d $(bindir)
	install -d $(mandir)

	install -m 0644 AUTHORS ChangeLog COPYING NEWS README README.Developer TODO $(docdir)/

	@for tool in $(TOOLS); do \
		( $(MAKE) -C src/$${tool} DESTDIR=$(DESTDIR) install ) \
	done