xref: /aoo41x/main/solenv/inc/tg_java.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28
29
30$(CLASSDIR)/com/sun/star/upd/$(VERSIONINFOFILE)_updversion.class .PHONY: $(MISC)/java/com/sun/star/upd/$(VERSIONINFOFILE)_updversion.java
31
32$(MISC)/java/com/sun/star/upd/$(VERSIONINFOFILE)_updversion.java .PHONY:
33	@echo "Making:   " $(@:f)
34	@-$(MKDIRHIER) $(MISC)/java/com/sun/star/upd
35.IF "$(GUI)"=="UNX"
36	@echo package com.sun.star.upd\; > $@
37	@echo 'public class $(VERSIONINFOFILE)_updversion { public static String Version = "$(RSCREVISION)";}' >> $@
38.ELSE			# "$(GUI)"=="UNX"
39	@echo package com.sun.star.upd; > $@
40	@echo public class $(VERSIONINFOFILE)_updversion { public static String Version = "$(RSCREVISION)";} >> $@
41.ENDIF			# "$(GUI)"=="UNX"
42
43.IF "$(JAVATARGET)"!=""
44.IF "$(PACKAGE)"!=""
45$(CLASSDIR)/$(PACKAGE)/%.class .NOINFER .IGNORE : %.java
46	$(COMMAND_ECHO)-$(RM) $(JAVATARGET)
47.ELSE			# "$(PACKAGE)"!=""
48$(CLASSDIR)/%.class .NOINFER .IGNORE : %.java
49	$(COMMAND_ECHO)-$(RM) $(JAVATARGET)
50.ENDIF			# "$(PACKAGE)"!=""
51
52$(JAVATARGET) :	$(JAVAFILES) $(JAVACLASSFILES)
53.IF "$(JAVARESPONSE)"!=""
54	$(JAVAC) @<<
55	$(JAVACPS) $(CLASSPATH) -d $(CLASSDIR) $(JAVAFLAGS) $(JAVAFILES)
56	<<keep
57.ELSE			# "$(JAVARESPONSE)"!=""
58.IF "$(use_jdep)"!=""
59	$(JAVAC) -depend $(JAVACPS) $(CLASSPATH) -d $(CLASSDIR) $(JAVAFLAGS) $(JAVAFILES)
60.ELSE			# "$(use_jdep)"!=""
61.IF "$(javauno)"!=""
62.IF "$(JAVAFILES:d)"==""
63	$(JAVAC) $(JAVACPS) $(CLASSPATH) -d $(CLASSDIR) $(JAVAFLAGS) $(JAVAFILES)
64.ELSE			# "$(JAVAFILES:d)"==""
65	@@$(TOUCH) $(INPATH)_$(VCSID)_a_dummy.java
66	$(JAVAC) $(JAVACPS) $(CLASSPATH) -d $(CLASSDIR) $(JAVAFLAGS) ./*.java $(uniq $(JAVAFILES:d:+"*.java"))
67	@@-$(RM) $(INPATH)_$(VCSID)_a_dummy.java
68.ENDIF			# "$(JAVAFILES:d)"==""
69.ELSE			# "$(javauno)"!=""
70	$(JAVAC) $(JAVACPS) "$(CLASSPATH)" -d $(CLASSDIR) $(JAVAFLAGS) @$(mktmp $(strip $(JAVAFILES)))
71.ENDIF			# "$(javauno)"!=""
72.ENDIF			# "$(use_jdep)"!=""
73.ENDIF			# "$(JAVARESPONSE)"!=""
74.IF "$(UPDATER)"!=""
75.IF "$(OS)$(CPU)"=="SOLARISS"
76	@@-find $(CLASSDIR) -type d -user $(USER) \! -perm -5 -print | xargs chmod a+r $$1
77.ENDIF
78.ENDIF
79	@$(TOUCH) $@
80
81.ENDIF			# "$(JAVATARGET)"!=""
82