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