root/trunk/docsrc/linux.mak

Revision 1971, 2.2 kB (checked in by andrei, 2 years ago)

Added png support

  • Property svn:eol-style set to native
Line 
1 # makefile to build html files for DMD
2
3 DMD=dmd
4
5 IMG=dmlogo.gif cpp1.gif d002.ico c1.gif d3.gif d4.gif d5.gif    \
6 download.png d.png home.png search.png wiki.png
7 #favicon.gif
8
9 TARGETS=cpptod.html ctod.html pretod.html cppstrings.html               \
10     cppcomplex.html cppdbc.html index.html overview.html lex.html       \
11     module.html dnews.html declaration.html type.html property.html     \
12     attribute.html pragma.html expression.html statement.html           \
13     arrays.html struct.html class.html enum.html function.html          \
14     operatoroverloading.html template.html mixin.html dbc.html          \
15     version.html errors.html garbage.html memory.html float.html        \
16     iasm.html interface.html portability.html html.html entity.html     \
17     abi.html windows.html dll.html htomodule.html faq.html dstyle.html  \
18     wc.html future.html changelog.html glossary.html                    \
19     acknowledgements.html dcompiler.html builtin.html                   \
20     interfaceToC.html comparison.html rationale.html ddoc.html          \
21     code_coverage.html exception-safe.html rdmd.html                    \
22     templates-revisited.html warnings.html ascii-table.html             \
23     windbg.html htod.html regular-expression.html lazy-evaluation.html  \
24     lisp-java-d.html variadic-function-templates.html                   \
25     howto-promote.html tuple.html template-comparison.html              \
26     template-mixin.html final-const-invariant.html const.html           \
27     traits.html COM.html cpp_interface.html hijack.html const3.html     \
28     features2.html
29
30 DOC_OUTPUT_DIR = ../web/2.0
31
32 TARGETS:=$(addprefix $(DOC_OUTPUT_DIR)/,$(TARGETS))
33
34 ALL_FILES = $(TARGETS) $(DOC_OUTPUT_DIR)/style.css \
35         $(addprefix $(DOC_OUTPUT_DIR)/,$(IMG))
36
37 all : $(ALL_FILES)
38
39 $(DOC_OUTPUT_DIR)/style.css : style.css
40     cp $< $@
41
42 $(DOC_OUTPUT_DIR)/%.gif : %.gif
43     cp $< $@
44
45 $(DOC_OUTPUT_DIR)/%.png : %.png
46     cp $< $@
47
48 $(DOC_OUTPUT_DIR)/%.ico : %.ico
49     cp $< $@
50
51 $(DOC_OUTPUT_DIR)/%.html : %.dd doc.ddoc
52     $(DMD) -c -o- -Df$@ doc.ddoc $<
53
54 zip:
55     rm doc.zip
56     zip32 doc win32.mak style.css doc.ddoc
57     zip32 doc $(SRC) download.html
58     zip32 doc $(IMG)
59
60 clean:
61     rm -rf $(TARGETS) $(DOC_OUTPUT_DIR)/style.css
62
63 html-upload : all
64     scp $(ALL_FILES) erdani.com:erdani.com/d/
65     make -C ../phobos/ html-upload
66 #   scp $(DOC_OUTPUT_DIR)/* d-programming@digitalmars.com:data/
67
68 html-upload-sshfs : all
69     cp -uv $(ALL_FILES) \
70         --target-directory /ssh/erdani.com/home/sandandrei/erdani.com/d/
Note: See TracBrowser for help on using the browser.