blob: adcdc627ab21084cae3871e3e0188f25d0a69af7 [file] [log] [blame]
yaberauneyaef772532009-10-09 17:55:43 +00001#
2# network test suite Makefile.
3#
4# Copyright (C) 2009, Cisco Systems Inc.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License along
17# with this program; if not, write to the Free Software Foundation, Inc.,
18# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19#
20# Garrett Cooper, July 2009
21#
plars865695b2001-08-27 22:15:12 +000022
yaberauneyaef772532009-10-09 17:55:43 +000023top_srcdir ?= ../..
plars865695b2001-08-27 22:15:12 +000024
yaberauneyaef772532009-10-09 17:55:43 +000025include $(top_srcdir)/include/mk/env_pre.mk
plars865695b2001-08-27 22:15:12 +000026
yaberauneyaef772532009-10-09 17:55:43 +000027DIR := datafiles
plars865695b2001-08-27 22:15:12 +000028
yaberauneyaef772532009-10-09 17:55:43 +000029CLEAN_TARGETS += $(DIR)
30
31INSTALL_DIR := testcases/bin
32
Garrett Cooper851e7792010-07-11 09:55:54 -070033INSTALL_TARGETS := $(addprefix $(DIR)/ascii.,sm med lg jmb)
34INSTALL_TARGETS += $(addprefix $(DIR)/bin.,sm med lg jmb)
yaberauneyaef772532009-10-09 17:55:43 +000035
36RM += -r
37
Chris Dearman37550cf2012-10-17 19:54:01 -070038$(INSTALL_TARGETS): | generate
yaberauneyaef772532009-10-09 17:55:43 +000039
40.PHONY: generate
41
42include $(top_srcdir)/include/mk/generic_trunk_target.mk
43
44$(DESTDIR)/$(INSTALL_DIR)/$(DIR) $(DIR): %:
45 mkdir -p "$@"
46
yaberauneyabf995b22009-10-10 23:53:29 +000047generate: $(DIR)
yaberauneyaef772532009-10-09 17:55:43 +000048 cd "$(DIR)" && \
49 abs_top_srcdir="$(abs_top_srcdir)" "$(abs_srcdir)/generate.sh"