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 @echo
------------------------------
39 @
-$(MKDIRHIER
) $(MISC
)/java
/com
/sun
/star
/upd
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)"!=""
50 $(CLASSDIR
)/$(IDLPACKAGE
)/%.class .NOINFER .IGNORE
: %.java
52 @@
-$(RM
) $(JAVATARGET
)
53 .ELSE
# "$(PACKAGE)"!=""
54 $(CLASSDIR
)/%.class .NOINFER .IGNORE
: %.java
56 @@
-$(RM
) $(JAVATARGET
)
57 .ENDIF
# "$(PACKAGE)"!=""
59 $(JAVATARGET
) : $(JAVAFILES
) $(JAVACLASSFILES
)
60 .IF
"$(JAVARESPONSE)"!=""
62 $(JAVACPS
) $(CLASSPATH
) -d
$(CLASSDIR
) $(JAVAFLAGS
) $(JAVAFILES
)
64 .ELSE
# "$(JAVARESPONSE)"!=""
66 $(JAVAC
) -depend
$(JAVACPS
) $(CLASSPATH
) -d
$(CLASSDIR
) $(JAVAFLAGS
) $(JAVAFILES
)
67 .ELSE
# "$(use_jdep)"!=""
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)"!=""
82 .IF
"$(OS)$(CPU)"=="SOLARISS"
83 @@
-find
$(CLASSDIR
) -type d
-user
$(USER
) \
! -perm
-5 -print | xargs chmod a
+r
$$1
88 .ENDIF
# "$(JAVATARGET)"!=""