Commit | Line | Data |
---|---|---|
d44e3c4f | 1 | ############################################################################## |
2 | # Copyright (c) 2000-2016 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 | |
d44e3c4f | 7 | # |
8 | # Contributors: | |
9 | # Baji, Laszlo | |
10 | # Balasko, Jeno | |
11 | # Baranyi, Botond | |
12 | # Feher, Csaba | |
13 | # Forstner, Matyas | |
14 | # Kovacs, Ferenc | |
15 | # Kovacs, Zoltan | |
16 | # Pilisi, Gergely | |
17 | # Raduly, Csaba | |
18 | # Szabados, Kristof | |
19 | # Szabo, Janos Zoltan – initial implementation | |
20 | # Szalai, Endre | |
21 | # | |
22 | ############################################################################## | |
970ed795 EL |
23 | # Makefile for installing the docs and html help pages |
24 | ||
25 | TOP := .. | |
26 | include ../Makefile.cfg | |
27 | ||
28 | CHMDIR := chm | |
29 | ||
30 | MAIN_HTML_FILES := titan_main.html titan_index.html | |
31 | ||
32 | MAIN_CHM_FILES := titan_index.html titan_online.html titan.hhp titan.hhc | |
33 | ||
34 | INFO_FILES := $(addprefix info/, $(addsuffix .html, \ | |
35 | BNF action activate address alive all alt altstep and and4b any \ | |
36 | anytype bit2hex bit2int bit2oct bit2str bitstring boolean break call \ | |
37 | case catch char char2int char2oct charstring check clear complement \ | |
38 | component connect const continue control create deactivate decode_base64 decvalue default \ | |
39 | disconnect display do done else encode encode_base64 encvalue enumerated error except \ | |
40 | exception execute extension external fail false float float2int \ | |
41 | float2str for from function friend get_stringencoding getcall getreply getverdict goto group \ | |
42 | hex2bit hex2int hex2oct hex2str hexstring if ifpresent import in \ | |
43 | inconc infinity inout int2bit int2char int2float int2hex int2oct \ | |
a38c6d4c | 44 | int2str int2unichar integer interleave isbound ischosen ispresent isvalue kill killed \ |
970ed795 EL |
45 | label language length lengthof log map match message mixed mod \ |
46 | modifies module modulepar mtc noblock none not not4b nowait null objid \ | |
47 | oct2bit oct2char oct2hex oct2int oct2str oct2unichar octetstring of omit on \ | |
48 | operators optional or or4b out override param pass pattern permutation \ | |
49 | port public private procedure raise read receive record recursive regexp rem remove_bom repeat \ | |
a38c6d4c | 50 | replace reply return rnd running runs select self send sender set setverdict \ |
970ed795 | 51 | signature sizeof start stop str2bit str2float str2hex \ |
a38c6d4c | 52 | str2int str2oct subset substr superset system template testcase testcasename \ |
53 | timeout timer to trigger true type unichar2char unichar2int unichar2oct union universal unmap \ | |
54 | value valueof var variant verdicttype while with xor xor4b profiler)) | |
970ed795 EL |
55 | |
56 | IMAGE_FILES := $(addprefix images/, $(addsuffix .jpg, ao left right up)) images/titan_transparent.gif | |
57 | ||
58 | DOC_FILES := $(addprefix docs/, $(addsuffix .pdf, \ | |
59 | naming)) | |
60 | ||
61 | USERGUIDES := $(addprefix ../../doc/, $(addsuffix .pdf, \ | |
62 | apiguide userguide installationguide referenceguide releasenotes)) | |
63 | ||
64 | all run: ; | |
65 | ||
66 | install: | |
67 | ifdef MINGW | |
68 | @echo Skipped ${CURDIR} for MinGW | |
69 | else | |
70 | mkdir -p $(BINDIR) | |
71 | cp ttcn3_help $(BINDIR) | |
72 | chmod +x $(BINDIR)/ttcn3_help | |
73 | mkdir -p $(HELPDIR) | |
74 | cp $(MAIN_HTML_FILES) $(HELPDIR) | |
75 | mkdir -p $(HELPDIR)/info | |
76 | cp $(INFO_FILES) $(HELPDIR)/info | |
77 | mkdir -p $(HELPDIR)/images | |
78 | cp $(IMAGE_FILES) $(HELPDIR)/images | |
79 | mkdir -p $(HELPDIR)/docs | |
80 | cp $(DOC_FILES) $(HELPDIR)/docs | |
81 | ifeq (GEN_PDF,yes) | |
82 | ln -s $(USERGUIDES) $(HELPDIR)/docs | |
83 | endif | |
84 | endif | |
85 | ||
86 | chm.tgz: | |
87 | $(RM) -r $(CHMDIR) | |
88 | mkdir -p $(CHMDIR) | |
89 | cp $(MAIN_CHM_FILES) $(CHMDIR) | |
90 | mkdir $(CHMDIR)/info | |
91 | cp $(INFO_FILES) $(CHMDIR)/info | |
92 | mkdir -p $(CHMDIR)/images | |
93 | cp $(IMAGE_FILES) $(CHMDIR)/images | |
94 | ./chm_refact.sh | |
95 | tar cfz $@ chm | |
96 | ||
97 | clean: | |
98 | $(RM) -rf $(CHMDIR) chm.tgz |