1 # Top Makefile to build upstream packages.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
20 # Aihua Li, Huawei Technologies.
22 SUBBUILDS = src_vanilla
23 .PHONY: vhost subbuilds $(SUBBUILDS)
25 all clean distclean: vhost subbuilds
27 subbuilds: $(SUBBUILDS)
29 $(AT)mkdir -p ../$@/mk
30 $(AT)cp -rf mk/* ../$@/mk
31 $(AT)cp -rf package-list.mk ../$@/
32 $(AT)cp Makefile.$@ ../$@/Makefile
33 $(AT)$(MAKE) -C ../$@ $(MAKECMDGOALS)
46 include mk/make-subsys.mk