Debian Codegraph @

regression_test/compileonly/mfgen-tpd/flagTest/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 # Balasko, Jeno
10 # Ormandi, Matyas
11 #
12 ##############################################################################
13 TOPDIR := ../../../
14 include $(TOPDIR)/Makefile.regression
15
16 ifdef LCOV
17 COVERAGE_FLAG := -C
18 endif
19
20 # ${MAKEPROG} has the same content as the built-in ${MAKE},
21 # except the special handling of ${MAKE} does not apply.
22 # If we used ${MAKE} in the rules below, 'make -n' would succeed once,
23 # then fail on every subsequent invocation until a 'make clean' is done.
24 MAKEPROG := ${MAKE}
25
26 all: BuildHelloTpd
27
28 BuildHelloTpd:
29 $(TTCN3_DIR)/bin/ttcn3_makefilegen -Fgcrp $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
30 -t HelloTpd2/HelloTpd2.tpd 2>&1 | tee output
31
32 CheckHelloTpd: BuildHelloTpd
33 if [ `grep -c "Makefile skeleton was generated." ./output` -ne 1 ]; \
34 then exit 1; fi
35
36 clean:
37 -rm -rf HelloTpd/bin Hello000/bin Hello123/bin HelloTpd2/bin output
38
39 distclean: clean
40 -rm -f *.out
41
42 .PHONY: all clean distclean BuildHelloTpd CheckHelloTpd
43