1f08c3bdfSopenharmony_ci# SPDX-License-Identifier: GPL-2.0-or-later
2f08c3bdfSopenharmony_ci# Copyright (C) 2009, Cisco Systems Inc.
3f08c3bdfSopenharmony_ci# Copyright (c) 2020 Petr Vorel <pvorel@suse.cz>
4f08c3bdfSopenharmony_ci# Ngie Cooper, July 2009
5f08c3bdfSopenharmony_ci
6f08c3bdfSopenharmony_citop_srcdir		?= ../..
7f08c3bdfSopenharmony_ci
8f08c3bdfSopenharmony_ciinclude $(top_srcdir)/include/mk/env_pre.mk
9f08c3bdfSopenharmony_ci
10f08c3bdfSopenharmony_ciDIR			:= datafiles
11f08c3bdfSopenharmony_ci
12f08c3bdfSopenharmony_ciCLEAN_TARGETS		+= $(DIR)
13f08c3bdfSopenharmony_ci
14f08c3bdfSopenharmony_ciINSTALL_DIR		:= testcases/bin
15f08c3bdfSopenharmony_ci
16f08c3bdfSopenharmony_ciINSTALL_TARGETS		:= $(addprefix $(DIR)/ascii.,sm med lg jmb)
17f08c3bdfSopenharmony_ciINSTALL_TARGETS		+= $(addprefix $(DIR)/bin.,sm med lg jmb)
18f08c3bdfSopenharmony_ci
19f08c3bdfSopenharmony_ciRM			+= -r
20f08c3bdfSopenharmony_ci
21f08c3bdfSopenharmony_ciifeq ($(ANDROID),1)
22f08c3bdfSopenharmony_ciFILTER_OUT_DIRS		+= lib6 rpc sockets
23f08c3bdfSopenharmony_ciendif
24f08c3bdfSopenharmony_ci
25f08c3bdfSopenharmony_ciifeq ($(HAVE_RPC),)
26f08c3bdfSopenharmony_ciFILTER_OUT_DIRS		+= rpc
27f08c3bdfSopenharmony_ciendif
28f08c3bdfSopenharmony_ci
29f08c3bdfSopenharmony_ci$(INSTALL_TARGETS): | generate
30f08c3bdfSopenharmony_ci
31f08c3bdfSopenharmony_ci.PHONY: generate
32f08c3bdfSopenharmony_ci
33f08c3bdfSopenharmony_ciinclude $(top_srcdir)/include/mk/generic_trunk_target.mk
34f08c3bdfSopenharmony_ci
35f08c3bdfSopenharmony_ci$(DESTDIR)/$(INSTALL_DIR)/$(DIR) $(DIR): %:
36f08c3bdfSopenharmony_ci	mkdir -p "$@"
37f08c3bdfSopenharmony_ci
38f08c3bdfSopenharmony_cigenerate: $(DIR)
39f08c3bdfSopenharmony_ci	cd "$(DIR)" && \
40f08c3bdfSopenharmony_ci	abs_top_srcdir="$(abs_top_srcdir)" "$(abs_srcdir)/generate.sh"
41