1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 ifeq ($(HAVE_GNUMAKE_FILE_FUNC
),YES
)
8 # Write string to temporary file by chopping into pieces that
10 # parameters: filename, maxitems (for one write), string
14 $(eval gb_var2file_helpervar
:= $$(shell printf
"%s" "" > $(1) ))\
15 $(foreach item
,$(3),$(eval gb_var2file_curblock
+= $(item
)
16 ifeq ($$(words $$(gb_var2file_curblock
)),$(2))
17 gb_var2file_helpervar
:= $$(shell printf
"%s" "$$(gb_var2file_curblock)" >> $(1) )
18 gb_var2file_curblock
:=
21 $(eval gb_var2file_helpervar
:= $(shell echo
" "$(gb_var2file_curblock
) >> $(1) )
22 gb_var2file_curblock
:=
27 # vim: set noet sw=4 ts=4: