2011-08-09 12:12:48 -05:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
2012-05-15 07:47:37 -05:00
|
|
|
#
|
|
|
|
# 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/.
|
|
|
|
#
|
2012-01-24 15:48:30 -06:00
|
|
|
|
2012-05-15 07:47:37 -05:00
|
|
|
# must not be empty so we can have a target for it
|
2012-01-26 16:29:26 -06:00
|
|
|
ifeq ($(MAKECMDGOALS),)
|
|
|
|
MAKECMDGOALS:=all
|
|
|
|
endif
|
|
|
|
|
2012-01-24 15:48:30 -06:00
|
|
|
SHELL=/usr/bin/env bash
|
|
|
|
SRCDIR:=$(patsubst %/,%,$(dir $(realpath $(firstword $(MAKEFILE_LIST)))))
|
|
|
|
|
2012-05-15 07:47:37 -05:00
|
|
|
.PHONY : $(filter-out $(SRCDIR)/config_host.mk,$(MAKECMDGOALS))
|
2012-03-06 16:43:07 -06:00
|
|
|
|
2012-05-15 07:47:37 -05:00
|
|
|
# recursively invoke Makefile.top, which includes config_host.mk
|
2012-07-26 08:49:10 -05:00
|
|
|
$(filter-out help,$(firstword $(MAKECMDGOALS))) : $(SRCDIR)/config_host.mk
|
2012-05-15 07:47:37 -05:00
|
|
|
$(MAKE) -r -f $(SRCDIR)/Makefile.top $(MAKECMDGOALS)
|
2012-01-26 14:26:49 -06:00
|
|
|
|
2012-05-15 07:47:37 -05:00
|
|
|
# run configure in an environment not polluted by config_host.mk
|
|
|
|
$(SRCDIR)/config_host.mk : \
|
|
|
|
$(SRCDIR)/config_host.mk.in \
|
2012-10-19 15:59:21 -05:00
|
|
|
$(SRCDIR)/configure.ac \
|
2012-05-15 07:47:37 -05:00
|
|
|
$(SRCDIR)/autogen.lastrun
|
2012-01-26 14:26:49 -06:00
|
|
|
./autogen.sh
|
|
|
|
|
2012-05-15 07:47:37 -05:00
|
|
|
# dummy rule in case autogen.lastrun does not exist
|
2012-05-28 11:13:19 -05:00
|
|
|
$(SRCDIR)/autogen.lastrun:
|
2012-02-26 12:53:09 -06:00
|
|
|
@true
|
|
|
|
|
2012-07-26 08:49:10 -05:00
|
|
|
help:
|
|
|
|
@cat $(SRCDIR)/solenv/gbuild/gbuild.help.txt
|
|
|
|
@true
|
|
|
|
|
2010-04-17 05:41:17 -05:00
|
|
|
# vim: set noet sw=4 ts=4:
|