Debian Codegraph @

regression_test/compileonly/mfgen-tpd/invalid_buildconfig_param/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 # Baji, Laszlo
10 # Balasko, Jeno
11 # Beres, Szabolcs
12 # Delic, Adam
13 # Raduly, Csaba
14 #
15 ##############################################################################
16 TOPDIR := ../../../
17 include $(TOPDIR)/Makefile.regression
18
19 ifdef LCOV
20 COVERAGE_FLAG := -C
21 endif
22
23 # ${MAKEPROG} has the same content as the built-in ${MAKE},
24 # except the special handling of ${MAKE} does not apply.
25 # If we used ${MAKE} in the rules below, 'make -n' would succeed once,
26 # then fail on every subsequent invocation until a 'make clean' is done.
27 MAKEPROG := ${MAKE}
28
29 all: CheckHelloTpd
30
31 BuildHelloTpd:
32 mkdir -p HelloTpd/bin && cd HelloTpd/bin \
33 && $(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
34 -t ../HelloTpd.tpd -b notexisting 2>&1 | tee ../output
35
36 CheckHelloTpd: BuildHelloTpd
37 if [ `grep -c "error: The active build configuration named 'notexisting' of project 'HelloTpd' does not exist" ./HelloTpd/output` -ne 1 ]; \
38 then exit 1; fi
39
40 clean:
41 -rm -rf HelloTpd/bin HelloTpd/output
42
43 distclean: clean
44 -rm -f *.out
45
46 .PHONY: all clean distclean BuildHelloTpd CheckHelloTpd
47