aboutsummaryrefslogtreecommitdiff
blob: a31a578381f55c8ba29681b2f88e88939ec275dc (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
icondir = $(datadir)/icons/hicolor/48x48/mimetypes
dist_icon_DATA = \
	icons/application-x-java-jnlp-file.png

desktopdir = $(datadir)/applications
dist_desktop_DATA = \
	src/javaws.desktop

pixmapsdir = $(datadir)/pixmaps
dist_pixmaps_DATA = \
	icons/java-icon48.png

envddir = $(sysconfdir)/env.d
envd_DATA = \
	src/20java-config

EXTRA_DIST = \
	src/20java-config.in

profileddir = $(sysconfdir)/profile.d
profiled_DATA = \
	src/java-config-2.csh \
	src/java-config-2.sh

EXTRA_DIST += \
	src/java-config-2.csh.in \
	src/java-config-2.sh.in

revdepdir = $(sysconfdir)/revdep-rebuild
dist_revdep_DATA = \
	src/60-java

CLEANFILES = $(envd_DATA) $(profiled_DATA)

EXTRA_DIST += \
	COPYING \
	NEWS \
	README

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

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

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

dist-hook:
	if svn info "$(srcdir)" >/dev/null 2>&1 ; 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