Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /doc/trunk/src/Makefile.in
ViewVC logotype

Annotation of /doc/trunk/src/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3906 - (view) (download)

1 : jhr 3906 # Makefile for SML/NJ documentation
2 :     #
3 :     # COPYRIGHT (c) 2014 The Fellowship of SML/NJ (http://www.smlnj.org)
4 :     # All rights reserved.
5 :     #
6 :     # @configure_input@
7 :     #
8 :    
9 :     # default target base
10 :     #
11 :     TARGET_BASE = http://smlnj.org
12 :    
13 :     # root path to place generated HTML files
14 :     #
15 :     HTML_DST_ROOT = @ROOT_DIR@/htdocs
16 :     STYLES_DST = $(HTML_DST_ROOT)/styles
17 :     IMAGES_DST = $(HTML_DST_ROOT)/images
18 :    
19 :     include @MK_DIR@/doc-rules.gmk
20 :    
21 :     DOC_SUBDIRS = man
22 :    
23 :     STYLE_IN_FILES = $(notdir $(wildcard styles/*.in))
24 :     STYLE_DST_FILES = $(addprefix $(STYLES_DST)/,$(STYLE_IN_FILES:_css.in=.css)))
25 :     IMAGE_FILES = $(notdir $(wildcard images/*.png images/*jpg))
26 :     IMAGE_DST_FILES = $(addprefix $(IMAGES_DST)/,$(IMAGE_FILES))
27 :    
28 :     .PHONY: man
29 :     man:
30 :     (cd man; $(MAKE) man)
31 :    
32 :     .PHONY: all-html
33 :     all-html: $(HTML_DST_ROOT) $(STYLE_DST_FILES) $(IMAGE_DST_FILES)
34 :     for dir in $(DOC_SUBDIRS) ; do \
35 :     dstdir=$(HTML_DST_ROOT)/$$dir ; \
36 :     mkdir -p $$dstdir ; \
37 :     (cd $$dir; $(MAKE) DST_DIR=$$dstdir TARGET_BASE=$(TARGET_BASE) DOC_BASE=$(TARGET_BASE)/$$dir html); \
38 :     done
39 :     (cd web; $(MAKE) DST_DIR=$(HTML_DST_ROOT) TARGET_BASE=$(TARGET_BASE) DOC_BASE=$(TARGET_BASE) html)
40 :    
41 :     $(HTML_DST_ROOT):
42 :     mkdir -p $(HTML_DST_ROOT)
43 :    
44 :     # Rules to build the CSS files for the web pages
45 :     #
46 :     $(STYLE_DST_FILES):
47 :     mkdir -p $(STYLES_DST)
48 :     for f in $(STYLE_IN_FILES:_css.in=) ; do \
49 :     $(CONF_DIR)/gen-css.sh styles/"$$f"_css.in > $(STYLES_DST)/$$f.css ; \
50 :     done
51 :    
52 :     $(STYLES_DST)/%.css: styles/%_css.in
53 :     mkdir -p $(STYLES_DST)
54 :     $(CONF_DIR)/gen-css.sh $< > $@
55 :    
56 :     # Rules to build the image files for the web pages
57 :     #
58 :     $(IMAGE_DST_FILES):
59 :     mkdir -p $(IMAGES_DST)
60 :     for f in $(IMAGE_FILES) ; do \
61 :     cp -p images/$$f $(IMAGES_DST) ; \
62 :     done
63 :    
64 :     include @MK_DIR@/clean-rules.gmk
65 :    
66 :     CLEAN_SUBDIRS = $(SUBDIRS)
67 :    

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0