Partially Revert "New Save, Save As and Reload File icons for the Tango theme"
[LibreOffice.git] / Makefile
blob5bd79e1a73baa7b77bf2592a96052cd3231a08f6
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 $(filter-out help,$(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)/configure.ac \
28 $(SRCDIR)/autogen.lastrun
29 ./autogen.sh
31 # dummy rule in case autogen.lastrun does not exist
32 $(SRCDIR)/autogen.lastrun:
33 @true
35 help:
36 @cat $(SRCDIR)/solenv/gbuild/gbuild.help.txt
37 @true
39 # vim: set noet sw=4 ts=4: