-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (38 loc) · 1.41 KB
/
Makefile
File metadata and controls
63 lines (38 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Generates online and print versions of DocBook source files.
# DocBook source files.
SOURCES = $(wildcard *.xml) terms.dtd
TARGET = DRI-Devel-FAQ
LDP = /usr/share/sgml/docbook/stylesheet/xsl/ldp
# Build rules.
html: index.html
htm: $(TARGET).htm
pdf: $(TARGET).pdf
index.html: $(SOURCES)
xsltproc $(LDP)/ldp-html-chunk.xsl $(TARGET).xml
$(TARGET).fo: $(SOURCES)
xsltproc -o $@ $(LDP)/ldp-print.xsl $(TARGET).xml
$(TARGET).htm: $(SOURCES)
xsltproc -o $@ $(LDP)/ldp-html-chunk.xsl $(TARGET).xml
$(TARGET).pdf: $(TARGET).fo
#pdfxmltex $<
fop $< $@
terms.dtd: glossary.xml terms.py
python terms.py $< > $@
all: html htm pdf
clean:
rm -f terms.dtd
rm -f *.html htm *.fo *.pdf
# Install rules.
INSTALL_SSH = ssh
INSTALL_SCP = scp
INSTALL_HOST = jrfonseca@shell.sourceforge.net
INSTALL_DIR = /home/groups/d/dr/dri/htdocs/doc/faq
install: all
$(INSTALL_SSH) $(INSTALL_HOST) mkdir -p $(INSTALL_DIR)
$(INSTALL_SCP) *.html $(INSTALL_HOST):$(INSTALL_DIR)
$(INSTALL_SSH) $(INSTALL_HOST) mkdir -p $(INSTALL_DIR)/other-formats/html-single
$(INSTALL_SCP) *.htm $(INSTALL_HOST):$(INSTALL_DIR)/other-formats/html-single
$(INSTALL_SSH) $(INSTALL_HOST) mkdir -p $(INSTALL_DIR)/other-formats/pdf
$(INSTALL_SCP) *.pdf $(INSTALL_HOST):$(INSTALL_DIR)/other-formats/pdf
$(INSTALL_SSH) $(INSTALL_HOST) mkdir -p $(INSTALL_DIR)/other-formats/xml
$(INSTALL_SCP) *.{xml,dtd} $(INSTALL_HOST):$(INSTALL_DIR)/other-formats/xml