1 #
2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
71 $(RM) -r $(SUPPORT_OUTPUTDIR)/gensrc/$(strip $1)
72 @$(PRINTF) " done\n"
73 endef
74
75 define Clean-java
76 @$(PRINTF) "Cleaning java $(if $1,for $(strip $1) )..."
77 @$(PRINTF) "\n" $(LOG_DEBUG)
78 $(RM) -r $(JDK_OUTPUTDIR)/modules/$(strip $1)
79 $(RM) -r $(SUPPORT_OUTPUTDIR)/special_classes/$(strip $1)
80 $(PRINTF) " done\n"
81 $(PRINTF) "Cleaning headers $(if $1,for $(strip $1)) ..."
82 $(RM) -r $(SUPPORT_OUTPUTDIR)/headers/$(strip $1)
83 @$(PRINTF) " done\n"
84 endef
85
86 define Clean-native
87 @$(PRINTF) "Cleaning native $(if $1,for $(strip $1) )..."
88 @$(PRINTF) "\n" $(LOG_DEBUG)
89 $(RM) -r $(SUPPORT_OUTPUTDIR)/native/$(strip $1)
90 $(RM) -r $(SUPPORT_OUTPUTDIR)/modules_libs/$(strip $1)
91 $(RM) -r $(SUPPORT_OUTPUTDIR)/modules_libs-stripped/$(strip $1)
92 $(RM) -r $(SUPPORT_OUTPUTDIR)/modules_cmds/$(strip $1)
93 $(RM) -r $(SUPPORT_OUTPUTDIR)/modules_cmds-stripped/$(strip $1)
94 @$(PRINTF) " done\n"
95 endef
96
97 define Clean-include
98 @$(PRINTF) "Cleaning include $(if $1,for $(strip $1) )..."
99 @$(PRINTF) "\n" $(LOG_DEBUG)
100 $(RM) -r $(SUPPORT_OUTPUTDIR)/modules_include/$(strip $1)
101 @$(PRINTF) " done\n"
102 endef
103
104 define Clean-docs
105 @$(PRINTF) "Cleaning docs ..."
106 @$(PRINTF) "\n" $(LOG_DEBUG)
107 $(RM) -r $(SUPPORT_OUTPUTDIR)/docs
108 $(RM) -r $(IMAGES_OUTPUTDIR)/docs
109 $(RM) $(OUTPUT_ROOT)/bundles/jdk-*-docs.zip
110 @$(PRINTF) " done\n"
111 endef
112
113 define CleanModule
|
1 #
2 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
71 $(RM) -r $(SUPPORT_OUTPUTDIR)/gensrc/$(strip $1)
72 @$(PRINTF) " done\n"
73 endef
74
75 define Clean-java
76 @$(PRINTF) "Cleaning java $(if $1,for $(strip $1) )..."
77 @$(PRINTF) "\n" $(LOG_DEBUG)
78 $(RM) -r $(JDK_OUTPUTDIR)/modules/$(strip $1)
79 $(RM) -r $(SUPPORT_OUTPUTDIR)/special_classes/$(strip $1)
80 $(PRINTF) " done\n"
81 $(PRINTF) "Cleaning headers $(if $1,for $(strip $1)) ..."
82 $(RM) -r $(SUPPORT_OUTPUTDIR)/headers/$(strip $1)
83 @$(PRINTF) " done\n"
84 endef
85
86 define Clean-native
87 @$(PRINTF) "Cleaning native $(if $1,for $(strip $1) )..."
88 @$(PRINTF) "\n" $(LOG_DEBUG)
89 $(RM) -r $(SUPPORT_OUTPUTDIR)/native/$(strip $1)
90 $(RM) -r $(SUPPORT_OUTPUTDIR)/modules_libs/$(strip $1)
91 $(RM) -r $(SUPPORT_OUTPUTDIR)/modules_cmds/$(strip $1)
92 @$(PRINTF) " done\n"
93 endef
94
95 define Clean-include
96 @$(PRINTF) "Cleaning include $(if $1,for $(strip $1) )..."
97 @$(PRINTF) "\n" $(LOG_DEBUG)
98 $(RM) -r $(SUPPORT_OUTPUTDIR)/modules_include/$(strip $1)
99 @$(PRINTF) " done\n"
100 endef
101
102 define Clean-docs
103 @$(PRINTF) "Cleaning docs ..."
104 @$(PRINTF) "\n" $(LOG_DEBUG)
105 $(RM) -r $(SUPPORT_OUTPUTDIR)/docs
106 $(RM) -r $(IMAGES_OUTPUTDIR)/docs
107 $(RM) $(OUTPUT_ROOT)/bundles/jdk-*-docs.zip
108 @$(PRINTF) " done\n"
109 endef
110
111 define CleanModule
|