| 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 |
# Ormandi, Matyas |
| 11 |
# |
| 12 |
############################################################################## |
| 13 |
TOPDIR := ../../../ |
| 14 |
include $(TOPDIR)/Makefile.regression |
| 15 |
|
| 16 |
ifdef LCOV |
| 17 |
COVERAGE_FLAG := -C |
| 18 |
endif |
| 19 |
|
| 20 |
# ${MAKEPROG} has the same content as the built-in ${MAKE}, |
| 21 |
# except the special handling of ${MAKE} does not apply. |
| 22 |
# If we used ${MAKE} in the rules below, 'make -n' would succeed once, |
| 23 |
# then fail on every subsequent invocation until a 'make clean' is done. |
| 24 |
MAKEPROG := ${MAKE} |
| 25 |
|
| 26 |
all: CheckHelloTpd |
| 27 |
|
| 28 |
BuildHelloTpd: |
| 29 |
$(TTCN3_DIR)/bin/ttcn3_makefilegen -fgp $(MFGEN_FLAGS) $(COVERAGE_FLAG) \ |
| 30 |
-t HelloTpd/HelloTpd.tpd 2>&1 | tee output |
| 31 |
|
| 32 |
CheckHelloTpd: BuildHelloTpd |
| 33 |
if [ -e "Hello000/bin" ] || [ -e "Hello123/bin" ] || [ `grep -c "Makefile skeleton was generated." ./output` -ne 1 ]; \ |
| 34 |
then exit 1; \ |
| 35 |
fi |
| 36 |
|
| 37 |
clean: |
| 38 |
-rm -rf HelloTpd/bin output |
| 39 |
|
| 40 |
distclean: clean |
| 41 |
-rm -f *.out |
| 42 |
|
| 43 |
.PHONY: all clean distclean BuildHelloTpd CheckHelloTpd |
| 44 |
|