1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: tg_java.mk,v $
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 .IF
"$(VERBOSE)" == "TRUE"
38 @echo
------------------------------
40 @echo
"Making: " $(@
:f
)
41 @
-$(MKDIRHIER
) $(MISC
)/java
/com
/sun
/star
/upd
43 @echo package com.sun.star.upd\
; > $@
44 @echo
'public class $(VERSIONINFOFILE)_updversion { public static String Version = "$(RSCREVISION)";}' >> $@
45 .ELSE
# "$(GUI)"=="UNX"
46 @echo package com.sun.star.upd
; > $@
47 @echo public class
$(VERSIONINFOFILE
)_updversion
{ public static String Version
= "$(RSCREVISION)";} >> $@
48 .ENDIF
# "$(GUI)"=="UNX"
50 .IF
"$(JAVATARGET)"!=""
52 $(CLASSDIR
)/$(IDLPACKAGE
)/%.class .NOINFER .IGNORE
: %.java
54 @@
-$(RM
) $(JAVATARGET
)
55 .ELSE
# "$(PACKAGE)"!=""
56 $(CLASSDIR
)/%.class .NOINFER .IGNORE
: %.java
58 @@
-$(RM
) $(JAVATARGET
)
59 .ENDIF
# "$(PACKAGE)"!=""
61 $(JAVATARGET
) : $(JAVAFILES
) $(JAVACLASSFILES
)
62 .IF
"$(JAVARESPONSE)"!=""
64 $(JAVACPS
) $(CLASSPATH
) -d
$(CLASSDIR
) $(JAVAFLAGS
) $(JAVAFILES
)
66 .ELSE
# "$(JAVARESPONSE)"!=""
68 $(JAVAC
) -depend
$(JAVACPS
) $(CLASSPATH
) -d
$(CLASSDIR
) $(JAVAFLAGS
) $(JAVAFILES
)
69 .ELSE
# "$(use_jdep)"!=""
71 .IF
"$(JAVAFILES:d)"==""
72 $(JAVAC
) $(JAVACPS
) $(CLASSPATH
) -d
$(CLASSDIR
) $(JAVAFLAGS
) $(JAVAFILES
)
73 .ELSE
# "$(JAVAFILES:d)"==""
74 @@
$(TOUCH
) $(INPATH
)_
$(VCSID
)_a_dummy.java
75 $(JAVAC
) $(JAVACPS
) $(CLASSPATH
) -d
$(CLASSDIR
) $(JAVAFLAGS
) .
/*.java
$(uniq
$(JAVAFILES
:d
:+"*.java"))
76 @@
-$(RM
) $(INPATH
)_
$(VCSID
)_a_dummy.java
77 .ENDIF
# "$(JAVAFILES:d)"==""
78 .ELSE
# "$(javauno)"!=""
79 $(JAVAC
) $(JAVACPS
) "$(CLASSPATH)" -d
$(CLASSDIR
) $(JAVAFLAGS
) @
$(mktmp
$(strip $(JAVAFILES
)))
80 .ENDIF
# "$(javauno)"!=""
81 .ENDIF
# "$(use_jdep)"!=""
82 .ENDIF
# "$(JAVARESPONSE)"!=""
84 .IF
"$(OS)$(CPU)"=="SOLARISS"
85 @@
-find
$(CLASSDIR
) -type d
-user
$(USER
) \
! -perm
-5 -print | xargs chmod a
+r
$$1
90 .ENDIF
# "$(JAVATARGET)"!=""