Commit | Line | Data |
---|---|---|
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 | |
9 | TOPDIR := ../../../ | |
10 | include $(TOPDIR)/Makefile.regression | |
11 | ||
12 | ifdef LCOV | |
13 | COVERAGE_FLAG := -C | |
14 | endif | |
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. | |
20 | MAKEPROG := ${MAKE} | |
21 | ||
22 | all: CheckDependencies | |
23 | ||
24 | GenerateMakefile: | |
25 | ${TTCN3_DIR}/bin/ttcn3_makefilegen -Fgrc -t "controller/controller.tpd" || true | |
26 | ||
27 | CheckDependencies: 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 | ||
32 | clean: | |
33 | -rm -rf client/bin | |
34 | -rm -rf controller/bin | |
35 | -rm -rf server/bin | |
36 | -rm -rf testport/bin | |
37 | ||
38 | distclean: clean | |
39 | -rm -f dir.txt | |
40 | ||
41 | .PHONY: all clean distclean GenerateMakefile CheckDependencies |