File: sgml-Makefile

package info (click to toggle)
doc-linux-de 2000.02
  • links: PTS
  • area: main
  • in suites: potato
  • size: 904 kB
  • ctags: 10
  • sloc: perl: 89; makefile: 85; sh: 22
file content (50 lines) | stat: -rw-r--r-- 955 bytes parent folder | download | duplicates (5)
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
#  Copyright (c) Marco Budde 1998-99
#  GNU GPL


SGMLOPTS = -c latin --language=de


# how to convert a sgml file to other formats

%.txt: %.sgml
	sgml2txt -f $(SGMLOPTS) $<
%.html: %.sgml
	sgml2html -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 *~