Titan Core Initial Contribution
[deliverable/titan.core.git] / regression_test / compileonly / mfgen-tpd / invalid_buildconfig_tpd / Makefile
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 ###############################################################################
8 TOPDIR := ../../../
9 include $(TOPDIR)/Makefile.regression
10
11 ifdef LCOV
12 COVERAGE_FLAG := -C
13 endif
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.
19 MAKEPROG := ${MAKE}
20
21 all: CheckHelloTpd
22
23 BuildHelloTpd:
24 mkdir -p HelloTpd/bin && cd HelloTpd/bin \
25 && $(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
26 -t ../HelloTpd.tpd 2>&1 | tee ../../output
27
28 CheckHelloTpd: BuildHelloTpd
29 if [ `grep -c "error: The active build configuration named 'notExistingBuildConfig' does not exist" ./output` -ne 1 ] \
30 || [ `grep -c "error: Failed to process .*../Hello000/Hello000.tpd" ./output` -ne 1 ]; \
31 then exit 1; fi
32
33 clean:
34 -rm -rf HelloTpd/bin output
35
36 distclean: clean
37 -rm -f *.out
38
39 .PHONY: all clean distclean BuildHelloTpd CheckHelloTpd
40
This page took 0.04704 seconds and 5 git commands to generate.