1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
30 $(CLASSDIR
)/com
/sun
/star
/upd
/$(VERSIONINFOFILE
)_updversion.class .PHONY
: $(MISC
)/java
/com
/sun
/star
/upd
/$(VERSIONINFOFILE
)_updversion.java
32 $(MISC
)/java
/com
/sun
/star
/upd
/$(VERSIONINFOFILE
)_updversion.java .PHONY
:
33 @echo
"Making: " $(@
:f
)
34 @
-$(MKDIRHIER
) $(MISC
)/java
/com
/sun
/star
/upd
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"
43 .IF
"$(JAVATARGET)"!=""
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)"!=""
52 $(JAVATARGET
) : $(JAVAFILES
) $(JAVACLASSFILES
)
53 .IF
"$(JAVARESPONSE)"!=""
54 $(COMMAND_ECHO
)$(JAVAC
) @
<<
55 $(JAVACPS
) $(CLASSPATH
) -d
$(CLASSDIR
) $(JAVAFLAGS
) $(JAVAFILES
)
57 .ELSE
# "$(JAVARESPONSE)"!=""
59 $(COMMAND_ECHO
)$(JAVAC
) -depend
$(JAVACPS
) $(CLASSPATH
) -d
$(CLASSDIR
) $(JAVAFLAGS
) $(JAVAFILES
)
60 .ELSE
# "$(use_jdep)"!=""
62 .IF
"$(JAVAFILES:d)"==""
63 $(COMMAND_ECHO
)$(JAVAC
) $(JAVACPS
) $(CLASSPATH
) -d
$(CLASSDIR
) $(JAVAFLAGS
) $(JAVAFILES
)
64 .ELSE
# "$(JAVAFILES:d)"==""
65 @@
$(TOUCH
) $(INPATH
)_
$(VCSID
)_a_dummy.java
66 $(COMMAND_ECHO
)$(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 $(COMMAND_ECHO
)$(JAVAC
) $(JAVACPS
) "$(CLASSPATH)" -d
$(CLASSDIR
) $(JAVAFLAGS
) @
$(mktmp
$(strip $(JAVAFILES
)))
71 .ENDIF
# "$(javauno)"!=""
72 .ENDIF
# "$(use_jdep)"!=""
73 .ENDIF
# "$(JAVARESPONSE)"!=""
74 .IF
"$(OS)$(CPU)"=="SOLARISS"
75 @@
-find
$(CLASSDIR
) -type d
-user
$(USER
) \
! -perm
-5 -print | xargs chmod a
+r
$$1
79 .ENDIF
# "$(JAVATARGET)"!=""