|
Revision 1561, 1.3 kB
(checked in by david, 3 years ago)
|
|
updating EOLs
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | sitedoc: copyfiles rest docbook |
|---|
| 2 | |
|---|
| 3 | #### |
|---|
| 4 | # target "copyfiles" |
|---|
| 5 | # copy files over that require no processing (images, css, html, txt, pdf) |
|---|
| 6 | #### |
|---|
| 7 | |
|---|
| 8 | COPY_SRC_FILES := $(shell find $(TOP)/documents -name '*.html' -o -name '*.png' -o -name '*.jpg' -o -name '*.gif' -o -name '*.css' | grep -v docbook) |
|---|
| 9 | COPY_DEST_FILES := $(patsubst $(TOP)/documents/%,$(WEBSITE)/%,$(COPY_SRC_FILES)) |
|---|
| 10 | |
|---|
| 11 | copyfiles: $(COPY_DEST_FILES) |
|---|
| 12 | |
|---|
| 13 | $(COPY_DEST_FILES): $(WEBSITE)/%: $(TOP)/documents/% |
|---|
| 14 | @mkdir -p $(dir $@) |
|---|
| 15 | $(CP) $< $@ |
|---|
| 16 | |
|---|
| 17 | #### |
|---|
| 18 | # target "rest" |
|---|
| 19 | # process files in reStructuredText format |
|---|
| 20 | #### |
|---|
| 21 | REST_SRC_FILES := $(shell find $(TOP)/documents -name '*.rst') |
|---|
| 22 | REST_DEST_FILES := $(patsubst $(TOP)/documents/%.rst,$(WEBSITE)/%.html,$(REST_SRC_FILES)) |
|---|
| 23 | |
|---|
| 24 | rest: $(REST_DEST_FILES) $(WEBSITE)/js_style_guide.html |
|---|
| 25 | |
|---|
| 26 | $(WEBSITE)/js_style_guide.html: $(TOP)/documents/js_style_guide.txt |
|---|
| 27 | @mkdir -p $(dir $@) |
|---|
| 28 | $(RST2HTML) $< $@ |
|---|
| 29 | |
|---|
| 30 | $(REST_DEST_FILES): $(WEBSITE)/%.html: $(TOP)/documents/%.rst |
|---|
| 31 | @mkdir -p $(dir $@) |
|---|
| 32 | $(RST2HTML) $< $@ |
|---|
| 33 | |
|---|
| 34 | #### |
|---|
| 35 | # target "docbook" |
|---|
| 36 | # process files in docbook format |
|---|
| 37 | #### |
|---|
| 38 | |
|---|
| 39 | DB_SRC_FILES := |
|---|
| 40 | DB_DEST_FILES := |
|---|
| 41 | |
|---|
| 42 | docbook: $(DB_DEST_FILES) $(WEBSITE)/requirements.html |
|---|
| 43 | |
|---|
| 44 | # FYI, a "failed to load external entity" warning on docbookx.dtd seems benign. |
|---|
| 45 | $(WEBSITE)/requirements.html: $(TOP)/documents/requirements.docbook $(DOCBOOK_XSL) |
|---|
| 46 | @mkdir -p $(dir $@) |
|---|
| 47 | $(XSLTPROC) -o $@ $(DOCBOOK_XSL) $< |
|---|