Bump for 3.6-28
[LibreOffice.git] / Makefile
blob8b275453d8b95a2fdcb263968927f85b851b2e76
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),)
12 MAKECMDGOALS:=all
13 endif
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
31 ./autogen.sh
33 # dummy rule in case autogen.lastrun does not exist
34 $(SRCDIR)/autogen.lastrun:
35 @true
37 # vim: set noet sw=4 ts=4: