blob: fd66058cb8ca8feb7cb1e67e52c0586534a2d701 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# Copyright 2012 LibreOffice contributors.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# must not be empty so we can have a target for it
ifeq ($(MAKECMDGOALS),)
MAKECMDGOALS:=all
endif
SHELL=/usr/bin/env bash
export SRCDIR:=@SRC_ROOT@
export BUILDDIR:=@BUILDDIR@
.PHONY : $(filter-out $(BUILDDIR)/config_host.mk,$(MAKECMDGOALS))
# recursively invoke Makefile.top, which includes config_host.mk
$(filter-out help,$(firstword $(MAKECMDGOALS))) : $(BUILDDIR)/config_host.mk
$(MAKE) -r -f $(SRCDIR)/Makefile.top $(MAKECMDGOALS)
# run configure in an environment not polluted by config_host.mk
$(BUILDDIR)/config_host.mk : \
$(SRCDIR)/config_host.mk.in \
$(SRCDIR)/Makefile.in \
$(SRCDIR)/configure.ac \
$(BUILDDIR)/autogen.lastrun
$(SRCDIR)/autogen.sh
# dummy rule in case autogen.lastrun does not exist
$(BUILDDIR)/autogen.lastrun:
@true
help:
@cat $(SRCDIR)/solenv/gbuild/gbuild.help.txt
@true
# vim: set noet sw=4 ts=4:
|