Debian Codegraph @

regression_test/compileonly/mfgen-tpd/disableUserInformation/Makefile

raw
1 ##############################################################################
2 # Copyright (c) 2018 Semihalf sp. z o.o.
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 # Klimkowicz, Jacek
10 #
11 ##############################################################################
12 TOPDIR := ../../..
13 include $(TOPDIR)/Makefile.regression
14
15 ifdef LCOV
16 COVERAGE_FLAG := -C
17 endif
18
19 # ${MAKEPROG} has the same content as the built-in ${MAKE},
20 # except the special handling of ${MAKE} does not apply.
21 # If we used ${MAKE} in the rules below, 'make -n' would succeed once,
22 # then fail on every subsequent invocation until a 'make clean' is done.
23
24 MAKEPROG := ${MAKE}
25
26 all: CheckTpd CheckTpdTrue CheckTpdFalse
27
28 BuildTpd:
29 $(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
30 -t a.tpd
31
32 CheckTpd: BuildTpd
33 if [ ! -f "./bin/Makefile" ] \
34 || [ `grep -c "COMPILER_FLAGS =.*-D" ./bin/Makefile` -ne 0 ]; \
35 then echo "Makefilegen disableUserInformation test: Overall verdict: fail" && exit 1; fi
36
37 BuildTpdTrue:
38 $(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
39 -t a.tpd -b True
40
41 CheckTpdTrue: BuildTpdTrue
42 if [ ! -f "./bin2/Makefile" ] \
43 || [ `grep -c "COMPILER_FLAGS =.*-D" ./bin2/Makefile` -ne 1 ]; \
44 then echo "Makefilegen disableUserInformation test: Overall verdict: fail" && exit 1; fi
45
46 BuildTpdFalse:
47 $(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
48 -t a.tpd -b False
49
50 CheckTpdFalse: BuildTpdFalse
51 if [ ! -f "./bin3/Makefile" ] \
52 || [ `grep -c "COMPILER_FLAGS =.*-D" ./bin3/Makefile` -ne 0 ]; \
53 then echo "Makefilegen disableUserInformation test: Overall verdict: fail" && exit 1; fi
54
55
56
57 clean:
58 -rm -rf bin bin2 bin3
59
60 distclean: clean
61 -rm -f *.out
62
63 .PHONY: all clean distclean CheckTpd CheckTpdTrue CheckTpdFalse BuildTpd BuildTpdTrue BuildTpdFalse
64