1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # Copyright 2012 LibreOffice contributors.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 # must not be empty so we can have a target for it
11 ifeq ($(MAKECMDGOALS
),)
15 SHELL
=/usr
/bin
/env bash
16 SRCDIR
:=$(patsubst %/,%,$(dir $(realpath
$(firstword $(MAKEFILE_LIST
)))))
18 .PHONY
: $(filter-out $(SRCDIR
)/config_host.mk
,$(MAKECMDGOALS
))
20 # recursively invoke Makefile.top, which includes config_host.mk
21 $(firstword $(MAKECMDGOALS
)) : $(SRCDIR
)/config_host.mk
22 $(MAKE
) -r
-f
$(SRCDIR
)/Makefile.top
$(MAKECMDGOALS
)
24 # run configure in an environment not polluted by config_host.mk
25 $(SRCDIR
)/config_host.mk
: \
26 $(SRCDIR
)/config_host.mk.in \
27 $(SRCDIR
)/bin
/repo-list.in \
28 $(SRCDIR
)/ooo.lst.in \
29 $(SRCDIR
)/configure.in \
30 $(SRCDIR
)/autogen.lastrun
33 # dummy rule in case autogen.lastrun does not exist
34 $(SRCDIR
)/autogen.lastrun
:
37 # vim: set noet sw=4 ts=4: