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 for installing the "Hello World!" example. | |
9 | ||
10 | TOP := $(shell cd .. && pwd) | |
11 | ||
12 | include ../Makefile.cfg | |
13 | ||
3abe9331 | 14 | DEMOFILES := MyExample.ttcn PCOType.hh PCOType.cc hello_world.ttcn MyExample.cfg |
970ed795 EL |
15 | |
16 | MAKEFILEGENFLAGS := -g | |
17 | ifeq ($(COVERAGE), yes) | |
18 | MAKEFILEGENFLAGS += -C | |
19 | endif | |
20 | ||
21 | install: | |
22 | ifdef MINGW | |
23 | @echo Skipped ${CURDIR} for MinGW | |
24 | else | |
25 | mkdir -p $(DEMODIR) | |
26 | cp $(DEMOFILES) $(DEMODIR) | |
27 | cd $(DEMODIR) && $(BINDIR)/ttcn3_makefilegen $(MAKEFILEGENFLAGS) \ | |
28 | -o Makefile.tmp $(DEMOFILES) && \ | |
29 | sed -e 's/# TTCN3_DIR =/TTCN3_DIR =/' <Makefile.tmp >Makefile && \ | |
30 | $(RM) Makefile.tmp && $(MAKE) CXX='$(CXX)' && \ | |
31 | (sleep 5 && echo 'Hello, TTCN-3!') | ttcn3_start MyExample MyExample.cfg | |
32 | endif |