BuildDirs.mk (7871dc3e) BuildDirs.mk (3e9d7d56)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 23 unchanged lines hidden (view full) ---

32include $(gb_LOCALBUILDDIR)/SetupLocal.mk
33endif
34
35ifeq ($(strip $(gb_REPOS)),)
36gb_REPOS := $(SOLARSRC)
37endif
38
39# HACK
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 23 unchanged lines hidden (view full) ---

32include $(gb_LOCALBUILDDIR)/SetupLocal.mk
33endif
34
35ifeq ($(strip $(gb_REPOS)),)
36gb_REPOS := $(SOLARSRC)
37endif
38
39# HACK
40# unixify windoze paths
40# unixify windows paths
41ifeq ($(OS),WNT)
42override WORKDIR := $(shell cygpath -u $(WORKDIR))
43override OUTDIR := $(shell cygpath -u $(OUTDIR))
41ifeq ($(OS),WNT)
42override WORKDIR := $(shell cygpath -u $(WORKDIR))
43override OUTDIR := $(shell cygpath -u $(OUTDIR))
44override gb_REPOS := $(shell cygpath -u $(gb_REPOS))
44override gb_REPOS := $(foreach repo,$(gb_REPOS),$(shell cygpath -u $(repo)))
45endif
46
47REPODIR := $(patsubst %/,%,$(dir $(firstword $(gb_REPOS))))
48
49ifeq ($(filter setuplocal removelocal,$(MAKECMDGOALS)),)
50ifneq ($(filter-out $(foreach repo,$(gb_REPOS),$(realpath $(repo))/%),$(realpath $(firstword $(MAKEFILE_LIST)))),)
51$(eval $(call gb_Output_error,The initial makefile $(realpath $(firstword $(MAKEFILE_LIST))) is not in the repositories $(foreach repo,$(gb_REPOS),$(realpath $(repo))).,ALL))
52endif
53endif
54
55# vim: set noet sw=4 ts=4:
45endif
46
47REPODIR := $(patsubst %/,%,$(dir $(firstword $(gb_REPOS))))
48
49ifeq ($(filter setuplocal removelocal,$(MAKECMDGOALS)),)
50ifneq ($(filter-out $(foreach repo,$(gb_REPOS),$(realpath $(repo))/%),$(realpath $(firstword $(MAKEFILE_LIST)))),)
51$(eval $(call gb_Output_error,The initial makefile $(realpath $(firstword $(MAKEFILE_LIST))) is not in the repositories $(foreach repo,$(gb_REPOS),$(realpath $(repo))).,ALL))
52endif
53endif
54
55# vim: set noet sw=4 ts=4: