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