Debian Codegraph @

regression_test/compileonly/mfgen-tpd/dependency_check/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 # Balasko, Jeno
10 # Szalay, Akos
11 #
12 ##############################################################################
13 #Makefile to test HR30356
14 TOPDIR := ../../../
15 include $(TOPDIR)/Makefile.regression
16
17 ifdef LCOV
18 COVERAGE_FLAG := -C
19 endif
20
21 # ${MAKEPROG} has the same content as the built-in ${MAKE},
22 # except the special handling of ${MAKE} does not apply.
23 # If we used ${MAKE} in the rules below, 'make -n' would succeed once,
24 # then fail on every subsequent invocation until a 'make clean' is done.
25 MAKEPROG := ${MAKE}
26
27 all: CheckDependencies
28
29 GenerateMakefile:
30 ${TTCN3_DIR}/bin/ttcn3_makefilegen -Fgrc -t "controller/controller.tpd" || true
31
32 CheckDependencies: GenerateMakefile
33 $(MAKEPROG) -C controller/bin dep
34 ls -R > dir.txt
35 if [ `grep -c "controller.d" ./dir.txt` -ne 1 ]; then exit 1; fi
36
37 clean:
38 -rm -rf client/bin
39 -rm -rf controller/bin
40 -rm -rf server/bin
41 -rm -rf testport/bin
42
43 distclean: clean
44 -rm -f dir.txt
45
46 .PHONY: all clean distclean GenerateMakefile CheckDependencies