File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 10
10
#
11
11
12
12
#
13
- # Copyright 2014 (c) Joyent, Inc. All rights reserved .
13
+ # Copyright 2019 Joyent, Inc.
14
14
#
15
15
16
16
PYTHON = python
@@ -51,14 +51,21 @@ FILES = \
51
51
glossary \
52
52
license
53
53
54
+ #
55
+ # So that the bare "/books/dev" URL works, we nominate one of the top-level
56
+ # pages to be the target of an "index.html" symlink:
57
+ #
58
+ INDEX_FILE = intro
59
+
54
60
OUTDIR = output
55
61
BOOTSTRAP_OUTDIRS = \
56
62
$(BOOTSTRAP_TYPES:%=$(OUTDIR ) /bootstrap/% )
57
63
58
64
OUTFILES = \
59
65
$(FILES:%=$(OUTDIR ) /%.html ) \
60
66
$(IMAGE_FILES:%=$(OUTDIR ) /img/% ) \
61
- $(BOOTSTRAP_FILES:%=$(OUTDIR ) /bootstrap/% )
67
+ $(BOOTSTRAP_FILES:%=$(OUTDIR ) /bootstrap/% ) \
68
+ $(OUTDIR ) /index.html
62
69
63
70
64
71
all : $(OUTDIR ) $(BOOTSTRAP_OUTDIRS ) $(OUTFILES )
@@ -72,6 +79,10 @@ $(OUTDIR)/img:
72
79
$(BOOTSTRAP_OUTDIRS ) :
73
80
mkdir -p " $@ "
74
81
82
+ $(OUTDIR ) /index.html :
83
+ rm -f " $@ "
84
+ ln -s $(INDEX_FILE ) .html " $@ "
85
+
75
86
$(OUTDIR ) /% .html : % $(HEADER ) $(TRAILER ) $(OUTDIR )
76
87
sed ' /<!-- vim:[^:]*: -->/d' $(HEADER ) > $@
77
88
$(TOC ) $< $(FILES ) >> $@
You can’t perform that action at this time.
0 commit comments