set gb_PARTIALBUILD in CustomTargets
[LibreOffice.git] / automation / source / testtool / Makefile
blob9b1e0071311f3bd19f11bace8806d72141b58c7d
1 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
3 # The contents of this file are subject to the Mozilla Public License Version
4 # 1.1 (the "License"); you may not use this file except in compliance with
5 # the License or as specified alternatively below. You may obtain a copy of
6 # the License at http://www.mozilla.org/MPL/
8 # Software distributed under the License is distributed on an "AS IS" basis,
9 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
10 # for the specific language governing rights and limitations under the
11 # License.
13 # Major Contributor(s):
14 # Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer)
16 # All Rights Reserved.
18 # For minor contributions see the git repository.
20 # Alternatively, the contents of this file may be used under the terms of
21 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
22 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
23 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
24 # instead of those above.
27 gb_PARTIALBUILD:=T
28 include $(GBUILDDIR)/gbuild_simple.mk
30 BASEDIR := $(dir $(firstword $(MAKEFILE_LIST)))
32 define filter_header
33 $(1).hxx : $(3)/$(2)
34 $(PERL) $(BASEDIR)/filter.pl $(3) $(2) $(1) $(4)
36 endef
38 $(eval $(call filter_header,classes,rcontrol.hxx,$(realpath $(BASEDIR)/../inc),M_))
39 $(eval $(call filter_header,keycodes,vcl/keycodes.hxx,$(OUTDIR)/inc,KEY_))
40 $(eval $(call filter_header,r_cmds,rcontrol.hxx,$(realpath $(BASEDIR)/../inc),RC_))
41 $(eval $(call filter_header,res_type,tools/wintypes.hxx,$(OUTDIR)/inc,WINDOW_))
43 $(CURDIR)/testtool.ini : $(BASEDIR)/testtool.ini
44 ifeq ($(GUI),UNX)
45 sed -e s/!INIFILESUFFIX!/rc/ -e s/!BRANDPATH!// $< > $@
46 else ifeq ($(GUI),WNT)
47 sed -e s/!INIFILESUFFIX!/.ini/ -e s/!BRANDPATH!/../ $< > $@
48 endif
50 .DEFAULT_GOAL := all
51 .PHONY : all
52 all : \
53 classes.hxx \
54 keycodes.hxx \
55 r_cmds.hxx \
56 res_type.hxx \
57 $(CURDIR)/testtool.ini
59 # vim: set ts=4 sw=4 noet: