aboutsummaryrefslogtreecommitdiff
blob: c65c41ccd468e49364ecdcadb7d3702ccba74dc0 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
dist_pkglibexec_SCRIPTS= \
	src/scripts/run-java-tool.bash

modulesdir=$(datadir)/eselect/modules/

modules_DATA = \
	src/modules/ecj.eselect \
	src/modules/java-nsplugin.eselect \
	src/modules/java-vm.eselect \
	src/modules/maven.eselect

EXTRA_DIST = \
	src/modules/ecj.eselect.in \
	src/modules/java-nsplugin.eselect.in \
	src/modules/java-vm.eselect.in \
	src/modules/maven.eselect.in

CLEANFILES = $(modules_DATA)

MAINTAINERCLEANFILES = \
	aclocal.m4 \
	install-sh \
	missing \
	configure \
	Makefile.in \
	INSTALL

EXTRA_DIST += \
	ChangeLog.old.eselect-ecj \
	ChangeLog.old.eselect-java-nsplugin \
	ChangeLog.old.eselect-java-vm \
	ChangeLog.old.eselect-maven \
	COPYING \
	NEWS \
	README


create-modules-dir:
	$(MKDIR_P) $(top_builddir)/src/modules

$(modules_DATA): | create-modules-dir
	$(SED) "s|\@VERSION\@|@PACKAGE_VERSION@|g" $(top_srcdir)/$@.in >$@

dist-hook:
	if test -d "$(srcdir)"/.svn ; then \
		echo "Generating ChangeLog ..." ; \
		( cd "$(top_srcdir)" && svn2cl --authors AUTHORS -o "$(top_distdir)"/ChangeLog ) ; \
	else \
		echo "Needs a svn checkout to generate a ChangeLog" ; \
	fi

#------------------------------------------------------------------------------
# FIXME let eselect java-vm handle symlinks.
tools = \
	appletviewer \
	apt \
	ControlPanel \
	extcheck \
	HtmlConverter \
	idlj \
	jar \
	jarsigner \
	java \
	javac \
	javadoc \
	javah \
	javap \
	javaws \
	jconsole \
	jcontrol \
	jdb \
	jhat \
	jinfo \
	jmap \
	jps \
	jrunscript \
	jsadebugd \
	jstack \
	jstat \
	jstatd \
	jvisualvm \
	keytool \
	native2ascii \
	orbd \
	pack200 \
	policytool \
	rmic \
	rmid \
	rmiregistry \
	schemagen \
	serialver \
	servertool \
	tnameserv \
	wsgen \
	wsimport \
	xjc

.PHONY: $(tools)

$(tools):
	$(MKDIR_P) "$(DESTDIR)/$(bindir)"
	$(LN_S) $(pkglibexecdir)/run-java-tool.bash "$(DESTDIR)/$(bindir)/$@"

install-exec-hook: $(tools)