Debian Codegraph @

regression_test/compileonly/mfgen-tpd/makefileScript/RecursiveHierarchy/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
25 MAKEPROG := ${MAKE}
26
27 all: CheckTpd
28
29 BuildTpd:
30 $(TTCN3_DIR)/bin/ttcn3_makefilegen -F $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
31 -t a.tpd -rWc
32
33 CheckTpd: BuildTpd
34 if [ ! -f "./a_bin/Makefile" ] || [ `grep -c "SCRIPTFLAG=RecursiveHierarchyA" ./a_bin/Makefile` -lt 1 ]; \
35 then echo "Makefilegen MakefileScript test RecursiveHierarchy failed: Overall verdict: fail" && exit 1; fi
36 if [ ! -f "./b_bin/Makefile" ] || [ `grep -c "SCRIPTFLAG=RecursiveHierarchyB" ./b_bin/Makefile` -lt 1 ]; \
37 then echo "Makefilegen MakefileScript test RecursiveHierarchy failed: Overall verdict: fail" && exit 1; fi
38
39 clean:
40 -rm -rf a_bin b_bin
41
42 distclean: clean
43 -rm -f *.out
44
45 .PHONY: all clean distclean BuildTpd CheckTpd