Debian Codegraph @

regression_test/compileonly/mfgen-tpd/required_config/43/Makefile

raw
1 ##############################################################################
2 # Copyright (c) 2000-2021 Ericsson Telecom AB
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Eclipse Public License v2.0
5 # which accompanies this distribution, and is available at
6 # https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7 #
8 # Contributors:
9 # Szabo, Bence Janos
10 #
11 ##############################################################################
12 TOPDIR := ../../../..
13 include $(TOPDIR)/Makefile.regression
14
15 ifdef LCOV
16 COVERAGE_FLAG := -C
17 endif
18
19 # ${MAKEPROG} has the same content as the built-in ${MAKE},
20 # except the special handling of ${MAKE} does not apply.
21 # If we used ${MAKE} in the rules below, 'make -n' would succeed once,
22 # then fail on every subsequent invocation until a 'make clean' is done.
23
24 # Hierarchy
25 # a
26 # / \
27 # / \
28 # b c
29 # b:1=>d:1\ |e:1
30 # \ | e:1=>f:1 f:1=>g:1
31 # d--->e----------->f--------->g
32 # |
33 # |e:1=>h:1
34 # h
35 #Result will be: a:Default, b:Default, c:Default, d:Default, e:1, f:1, g:1, h:1
36
37 MAKEPROG := ${MAKE}
38
39 all: CheckTpd
40
41 BuildTpd:
42 $(TTCN3_DIR)/bin/ttcn3_makefilegen -F $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
43 -t a.tpd -r -c -W -g
44
45 CheckTpd: BuildTpd
46 if [ ! -f "./a_binDefault/Makefile" ] || [ `grep -c "EXECUTABLE = binDefault" ./a_binDefault/Makefile` -ne 1 ]; \
47 then echo "Makefilegen required config test 43 failed: Overall verdict: fail" && exit 1; fi
48 if [ ! -f "./b_binDefault/Makefile" ] || [ `grep -c "EXECUTABLE = binDefault" ./b_binDefault/Makefile` -ne 1 ]; \
49 then echo "Makefilegen required config test 43 failed: Overall verdict: fail" && exit 1; fi
50 if [ ! -f "./c_binDefault/Makefile" ] || [ `grep -c "EXECUTABLE = binDefault" ./c_binDefault/Makefile` -ne 1 ]; \
51 then echo "Makefilegen required config test 43 failed: Overall verdict: fail" && exit 1; fi
52 if [ ! -f "./d_binDefault/Makefile" ] || [ `grep -c "EXECUTABLE = binDefault" ./d_binDefault/Makefile` -ne 1 ]; \
53 then echo "Makefilegen required config test 43 failed: Overall verdict: fail" && exit 1; fi
54 if [ ! -f "./e_bin1/Makefile" ] || [ `grep -c "EXECUTABLE = bin1" ./e_bin1/Makefile` -ne 1 ]; \
55 then echo "Makefilegen required config test 43 failed: Overall verdict: fail" && exit 1; fi
56 if [ ! -f "./f_bin1/Makefile" ] || [ `grep -c "EXECUTABLE = bin1" ./f_bin1/Makefile` -ne 1 ]; \
57 then echo "Makefilegen required config test 43 failed: Overall verdict: fail" && exit 1; fi
58 if [ ! -f "./g_bin1/Makefile" ] || [ `grep -c "EXECUTABLE = bin1" ./g_bin1/Makefile` -ne 1 ]; \
59 then echo "Makefilegen required config test 43 failed: Overall verdict: fail" && exit 1; fi
60 if [ ! -f "./h_bin1/Makefile" ] || [ `grep -c "EXECUTABLE = bin1" ./h_bin1/Makefile` -ne 1 ]; \
61 then echo "Makefilegen required config test 43 failed: Overall verdict: fail" && exit 1; fi
62
63 clean:
64 -rm -rf a_binDefault b_binDefault c_binDefault d_binDefault e_bin1 f_bin1 g_bin1 h_bin1
65
66 distclean: clean
67 -rm -f *.out
68
69 .PHONY: all clean distclean BuildTpd CheckTpd
70