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