File: Makefile.sgml

package info (click to toggle)
doc-linux-nl 20050324-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 15,900 kB
  • ctags: 105
  • sloc: xml: 37,932; makefile: 313; perl: 193; sh: 120; ansic: 12; csh: 9
file content (47 lines) | stat: -rw-r--r-- 983 bytes parent folder | download | duplicates (3)
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

SGMLOPTS = -c latin


# how to convert a sgml file to other formats

%.txt: %.sgml
	#sgml2txt -f $(SGMLOPTS) $<
	../../../../../../maaktxt -f $(SGMLOPTS) $<
%.html: %.sgml
	#sgml2html -I $(SGMLOPTS) $<
	../../../../../../maakhtml -I $(SGMLOPTS) $<
%.tex: %.sgml
	sgml2latex -o tex $(SGMLOPTS) $<
%.dvi: %.sgml
	sgml2latex -o dvi $(SGMLOPTS) $<
%.ps: %.sgml
	sgml2latex -o ps $(SGMLOPTS) $<
%.pdf: %.sgml
	sgml2latex -o pdf $(SGMLOPTS) $<


# list of files

TXT := $(patsubst %.sgml,%.txt,$(wildcard *.sgml))
HTML := $(patsubst %.sgml,%.html,$(wildcard *.sgml))
TEX := $(patsubst %.sgml,%.tex,$(wildcard *.sgml))
DVI := $(patsubst %.sgml,%.dvi,$(wildcard *.sgml))
PS := $(patsubst %.sgml,%.ps,$(wildcard *.sgml))
PDF := $(patsubst %.sgml,%.pdf,$(wildcard *.sgml))


all: txt html pdf ps dvi

txt: $(TXT)
html: $(HTML)
tex: $(TEX)
dvi: $(DVI)
ps: $(PS)
pdf: $(PDF)

archiv:
	gzip *.txt *.tex *.dvi *.ps *.pdf

clean:
	rm -f *.txt *.html *.tex *.dvi *.ps *.pdf
	rm -f *.gz *.tar.gz *~