Sync with 5.2.0
[deliverable/titan.core.git] / regression_test / compileonly / mfgen-tpd / invalid_buildconfig_param / Makefile
CommitLineData
970ed795
EL
1###############################################################################
2# Copyright (c) 2000-2014 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 v1.0
5# which accompanies this distribution, and is available at
6# http://www.eclipse.org/legal/epl-v10.html
7###############################################################################
8TOPDIR := ../../../
9include $(TOPDIR)/Makefile.regression
10
11ifdef LCOV
12COVERAGE_FLAG := -C
13endif
14
15# ${MAKEPROG} has the same content as the built-in ${MAKE},
16# except the special handling of ${MAKE} does not apply.
17# If we used ${MAKE} in the rules below, 'make -n' would succeed once,
18# then fail on every subsequent invocation until a 'make clean' is done.
19MAKEPROG := ${MAKE}
20
21all: CheckHelloTpd
22
23BuildHelloTpd:
24 mkdir -p HelloTpd/bin && cd HelloTpd/bin \
25 && $(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
26 -t ../HelloTpd.tpd -b notexisting 2>&1 | tee ../output
27
28CheckHelloTpd: BuildHelloTpd
af710487 29 if [ `grep -c "error: The active build configuration named 'notexisting' does not exist" ./HelloTpd/output` -ne 1 ]; \
970ed795
EL
30 then exit 1; fi
31
32clean:
33 -rm -rf HelloTpd/bin HelloTpd/output
34
35distclean: clean
36 -rm -f *.out
37
38.PHONY: all clean distclean BuildHelloTpd CheckHelloTpd
39
This page took 0.026273 seconds and 5 git commands to generate.