Debian Codegraph @

regression_test/compileonly/mfgen-tpd/disablePredefinedExternalFolder/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 # Szabo, Bence Janos
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
27
28 BuildTpd:
29 $(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
30 -t a.tpd
31
32 # when licensing is off then the OPENSSL_DIR is not generated into the makefile
33 # TODO: regression test does not see the LICENSING variable
34 #RES := 1
35 #ifeq ($(LICENSING), yes)
36 # RES := 1
37 #endif
38 # || [ `grep -c "# OPENSSL_DIR = \\$$(TTCN3_DIR)" ./bin/Makefile` -ne $(RES) ] \
39 CheckTpd: BuildTpd
40 if [ ! -f "./bin/Makefile" ] \
41 || [ `grep -c "# XMLDIR = \\$$(TTCN3_DIR)" ./bin/Makefile` -ne 1 ]; \
42 then echo "Makefilegen disablePredefinedExternalFolder test: Overall verdict: fail" && exit 1; fi
43
44 clean:
45 -rm -rf bin
46
47 distclean: clean
48 -rm -f *.out
49
50 .PHONY: all clean distclean BuildTpd CheckTpd
51