File: Makefile

package info (click to toggle)
last-align 490-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,196 kB
  • ctags: 2,317
  • sloc: cpp: 20,908; python: 1,636; ansic: 1,466; makefile: 365; sh: 107
file content (21 lines) | stat: -rw-r--r-- 643 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Rules for converting the txt documents to html.

DOCS = FAQ.html bisulfite.html last-map-probs.html		\
last-pair-probs.html last-postmask.html last-split.html		\
last-tutorial.html last.html maf-convert.html maf-cull.html

all: ${DOCS}

${DOCS}: last-doc.css Makefile

.SUFFIXES: .html .txt

# Below, we face 2 problems:
# 1. Figure out where html4css1.css is.
# 2. Work with rst2html version 0.4.1, which only allows one stylesheet-path.

# Ugh!  Is there a better way?
RST_CSS = `locate html4css1.css | head -n1`

.txt.html:
	cat ${RST_CSS} last-doc.css | rst2html --stylesheet-path=/dev/stdin --initial-header-level=2 --no-doc-info $< $@