Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / compileonly / mfgen-tpd / dependency_check / Makefile
CommitLineData
970ed795 1###############################################################################
3abe9331 2# Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
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#Makefile to test HR30356
9TOPDIR := ../../../
10include $(TOPDIR)/Makefile.regression
11
12ifdef LCOV
13COVERAGE_FLAG := -C
14endif
15
16# ${MAKEPROG} has the same content as the built-in ${MAKE},
17# except the special handling of ${MAKE} does not apply.
18# If we used ${MAKE} in the rules below, 'make -n' would succeed once,
19# then fail on every subsequent invocation until a 'make clean' is done.
20MAKEPROG := ${MAKE}
21
22all: CheckDependencies
23
24GenerateMakefile:
25 ${TTCN3_DIR}/bin/ttcn3_makefilegen -Fgrc -t "controller/controller.tpd" || true
26
27CheckDependencies: GenerateMakefile
28 $(MAKEPROG) -C controller/bin dep
29 ls -R > dir.txt
30 if [ `grep -c "controller.d" ./dir.txt` -ne 1 ]; then exit 1; fi
31
32clean:
33 -rm -rf client/bin
34 -rm -rf controller/bin
35 -rm -rf server/bin
36 -rm -rf testport/bin
37
38distclean: clean
39 -rm -f dir.txt
40
41.PHONY: all clean distclean GenerateMakefile CheckDependencies
This page took 0.043346 seconds and 5 git commands to generate.