aboutsummaryrefslogtreecommitdiff
blob: fb38d91d16721c1866e70a1e1bb60b09e1230975 (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
106
107
108
109
110
111
112
113
114
115
116
dist_pkglibexec_SCRIPTS= \
	src/scripts/run-java-tool.bash

EXTRA_DIST = \
	src/scripts/run-java-tool.bash.in

modulesdir=$(datadir)/eselect/modules/

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

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

CLEANFILES = $(dist_pkglibexec_SCRIPTS) $(modules_DATA)

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

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


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

$(dist_pkglibexec_SCRIPTS): | create-scripts-dir
	$(SED) "s|\@GENTOO_PORTAGE_EPREFIX\@|@EPREFIX@|g" $(top_srcdir)/$@.in >$@

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

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

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

.PHONY: $(tools)

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

install-exec-hook: $(tools)