yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 1 | # |
| 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 | # |
plars | 865695b | 2001-08-27 22:15:12 +0000 | [diff] [blame] | 22 | |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 23 | top_srcdir ?= ../.. |
plars | 865695b | 2001-08-27 22:15:12 +0000 | [diff] [blame] | 24 | |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 25 | include $(top_srcdir)/include/mk/env_pre.mk |
plars | 865695b | 2001-08-27 22:15:12 +0000 | [diff] [blame] | 26 | |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 27 | DIR := datafiles |
plars | 865695b | 2001-08-27 22:15:12 +0000 | [diff] [blame] | 28 | |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 29 | CLEAN_TARGETS += $(DIR) |
| 30 | |
| 31 | INSTALL_DIR := testcases/bin |
| 32 | |
Garrett Cooper | 851e779 | 2010-07-11 09:55:54 -0700 | [diff] [blame] | 33 | INSTALL_TARGETS := $(addprefix $(DIR)/ascii.,sm med lg jmb) |
| 34 | INSTALL_TARGETS += $(addprefix $(DIR)/bin.,sm med lg jmb) |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 35 | |
| 36 | RM += -r |
| 37 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 38 | $(INSTALL_TARGETS): | generate |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 39 | |
| 40 | .PHONY: generate |
| 41 | |
| 42 | include $(top_srcdir)/include/mk/generic_trunk_target.mk |
| 43 | |
| 44 | $(DESTDIR)/$(INSTALL_DIR)/$(DIR) $(DIR): %: |
| 45 | mkdir -p "$@" |
| 46 | |
yaberauneya | bf995b2 | 2009-10-10 23:53:29 +0000 | [diff] [blame] | 47 | generate: $(DIR) |
yaberauneya | ef77253 | 2009-10-09 17:55:43 +0000 | [diff] [blame] | 48 | cd "$(DIR)" && \ |
| 49 | abs_top_srcdir="$(abs_top_srcdir)" "$(abs_srcdir)/generate.sh" |