Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / compileonly / mfgen-tpd / HP79745 / Makefile
1 ###############################################################################
2 # Copyright (c) 2000-2015 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 "Makefile skeleton was generated." ./output` -ne 1 ]; \
30 then exit 1; fi
31
32 clean:
33 -rm -rf HelloTpd/bin output
34
35 distclean: clean
36 -rm -f *.out
37
38 .PHONY: all clean distclean BuildHelloTpd CheckHelloTpd
39
This page took 0.057181 seconds and 5 git commands to generate.