source: trunk/icedtea-web/netx/Makefile.kmk@ 449

Last change on this file since 449 was 435, checked in by dmik, 11 years ago

icedtea-web: Fix building jars from root.

  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1## @file
2#
3
4SUB_DEPTH = ..
5include $(KBUILD_PATH)/subheader.kmk
6
7OTHERS += netx
8BLDDIRS += $(netx_0_OUTDIR)
9
10netx_BUILD_PROPERTIES = $(netx_0_OUTDIR)/net/sourceforge/jnlp/build.properties
11BLDDIRS += $(dir $(netx_BUILD_PROPERTIES))
12OTHER_CLEAN += $(netx_BUILD_PROPERTIES)
13
14netx_MANIFEST = $(netx_0_OUTDIR)/netx.manifest
15BLDDIRS += $(dir $(netx_MANIFEST))
16OTHER_CLEAN += $(netx_MANIFEST)
17
18netx_JAVASRCDIRS := $(PATH_SUB_CURRENT)
19
20netx_JAVASRCLIST = $(netx_0_OUTDIR)/javasrc.list
21BLDDIRS += $(dir $(netx_JAVASRCLIST))
22OTHER_CLEAN += $(netx_JAVASRCLIST) $(netx_JAVASRCLIST).rsp $(netx_JAVASRCLIST).stamp
23
24netx_JARFILE = $(PATH_STAGE)/lib/netx.jar
25BLDDIRS += $(dir $(netx_JARFILE))
26OTHER_CLEAN += $(netx_JARFILE)
27
28$$(netx_BUILD_PROPERTIES): $(PATH_ROOT)/build.properties.in | $$(call DIRDEP,$$(dir $$(@)))
29 sed "s/@RHINO_AVAILABLE@/$(if $(WITH_RHINO),true,false)/g" < $^ > $@
30
31$$(netx_MANIFEST): $(PATH_ROOT)/netx.manifest.in | $$(call DIRDEP,$$(dir $$(@)))
32 sed "s/@PACKAGE_NAME@/$(PACKAGE_NAME)/g; \
33 s/@FULL_VERSION@/$(FULL_VERSION)/g; " < $^ > $@
34
35$$(netx_JAVASRCLIST): $(MAKEFILE) | $$(call DIRDEP,$$(dir $$(@)))
36 @echo 'netx_JAVASRC = \' > $@
37 find $(netx_JAVASRCDIRS) -name '*.java' \
38 $(if $(WITH_RHINO),,! -name '*RhinoBasedPacEvaluator*') \
39 $(if $(HAVE_TAGSOUP),,! -path '*/net/sourceforge/jnlp/MalformedXMLParser.java') \
40 $(if $(HAVE_JAVA7),,! -path '*/net/sourceforge/jnlp/security/VariableX509TrustManagerJDK7.java') \
41 -printf '%p \\\n' >> $@
42
43$$(netx_JAVASRCLIST).stamp: $$(netx_JAVASRC) | $$(call DIRDEP,$$(dir $$(@)))
44 $(call MSG_COMPILE,netx,$(words $?) sources,$@,JAVA)
45 @echo $? > $(netx_JAVASRCLIST).rsp
46 $(PATH_BOOTSTRAP_JDK)/bin/javac $(IT_JAVACFLAGS) \
47 -d "$(netx_0_OUTDIR)" \
48 -sourcepath "$(subst ; ,;,$(foreach d,$(netx_JAVASRCDIRS),$(d);))" \
49 -bootclasspath "$(BOOTSTRAP_JDK_RUNTIME)" \
50 @"$(netx_JAVASRCLIST).rsp"
51 @touch "$@"
52
53$$(netx_JARFILE): $$(netx_BUILD_PROPERTIES) $$(netx_MANIFEST) \
54 $$(netx_JAVASRCLIST).stamp | $$(call DIRDEP,$$(dir $$(@)))
55 (cd $(netx_DEFPATH)/net/sourceforge/jnlp/resources; \
56 for files in $$(find . -path ./.svn -prune -o -type f -print); \
57 do \
58 $(INSTALL_DATA) -D $${files} \
59 $(netx_0_OUTDIR)/net/sourceforge/jnlp/resources/$${files}; \
60 done)
61 cp -a $(netx_DEFPATH)/net/sourceforge/jnlp/runtime/pac-funcs.js \
62 $(netx_0_OUTDIR)/net/sourceforge/jnlp/runtime
63 (cd $(netx_0_OUTDIR); \
64 $(PATH_BOOTSTRAP_JDK)/bin/jar cfm $(netx_JARFILE) \
65 $(netx_MANIFEST) javax/jnlp net sun)
66
67netx: $$(netx_JARFILE)
68
69install:: netx
70
71include $(FILE_KBUILD_SUB_FOOTER)
72
73-include $(netx_JAVASRCLIST)
Note: See TracBrowser for help on using the repository browser.