xref: /trunk/main/GNUmakefile (revision b63233d8)
1e76eebc6SAndrew Rist#**************************************************************
2e76eebc6SAndrew Rist#
3e76eebc6SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4e76eebc6SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5e76eebc6SAndrew Rist#  distributed with this work for additional information
6e76eebc6SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7e76eebc6SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8e76eebc6SAndrew Rist#  "License"); you may not use this file except in compliance
9e76eebc6SAndrew Rist#  with the License.  You may obtain a copy of the License at
10e76eebc6SAndrew Rist#
11e76eebc6SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12e76eebc6SAndrew Rist#
13e76eebc6SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14e76eebc6SAndrew Rist#  software distributed under the License is distributed on an
15e76eebc6SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16e76eebc6SAndrew Rist#  KIND, either express or implied.  See the License for the
17e76eebc6SAndrew Rist#  specific language governing permissions and limitations
18e76eebc6SAndrew Rist#  under the License.
19e76eebc6SAndrew Rist#
20e76eebc6SAndrew Rist#**************************************************************
21cdf0e10cSrcweir
22*b63233d8Sdamjan# if no environment is set, try to find one, source it and re-exec
23cdf0e10cSrcweirifeq ($(strip $(SOLARENV)),)
24*b63233d8Sdamjan
25*b63233d8Sdamjanall:
26*b63233d8Sdamjan	if test -f ./source_soenv.sh; then . ./source_soenv.sh; fi && \
27*b63233d8Sdamjan	if test -z "$${SOLARENV}"; then echo "No environment set!"; exit 1; fi && \
28*b63233d8Sdamjan	$(MAKE)
29*b63233d8Sdamjan
30*b63233d8Sdamjanelse # SOLARENV
31cdf0e10cSrcweir
32cdf0e10cSrcweirGBUILDDIR := $(SOLARENV)/gbuild
33cdf0e10cSrcweirinclude $(GBUILDDIR)/gbuild.mk
34cdf0e10cSrcweir
35cdf0e10cSrcweir$(foreach repo,$(gb_REPOS),$(eval $(call gb_Module_make_global_targets,$(wildcard $(repo)/Module_*.mk))))
36cdf0e10cSrcweir
37*b63233d8Sdamjanendif # SOLARENV
38*b63233d8Sdamjan
39cdf0e10cSrcweir# vim: set noet sw=4 ts=4:
40