trex_stat_packet_counts: Add packet counts to trex reporting
[vswitchperf.git] / src / trex / Makefile
1 # makefile to manage trex package
2 #
3
4 # Copyright 2017 Martin Goldammer, OPNFV
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #     http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17
18 include ../mk/master.mk
19 include ../package-list.mk
20
21 WORK_DIR = trex
22 TAG_DONE_FLAG = $(WORK_DIR)/.$(TREX_TAG).done
23
24 .PHONY: force_pull
25
26 all: force_pull
27         @echo "Finished pulling $(WORK_DIR) "
28
29 force_pull: $(TAG_DONE_FLAG)
30         $(AT)cd $(WORK_DIR) && git pull $(TREX_URL) $(TREX_TAG)
31         @echo "git pull done"
32
33 $(WORK_DIR):
34         $(AT)git clone $(TREX_URL) $(WORK_DIR)
35
36 $(TAG_DONE_FLAG): $(WORK_DIR)
37         $(AT)cd $(WORK_DIR); git checkout $(TREX_TAG)
38         $(AT)touch $@
39
40 install:
41         @echo "Make install in $(WORK_DIR) (stub) "
42
43 clobber:
44         $(AT)rm -rf $(WORK_DIR)
45
46 distclean:
47         @echo "Make distclean in $(WORK_DIR) (stub) "
48
49 clean:
50         @echo "Make clean in $(WORK_DIR) (stub) "
51
52 test:
53         @echo "Make test in $(WORK_DIR) (stub) "
54
55 sanity:
56         @echo "Make sanity in $(WORK_DIR) (stub) "