File: Makefile

package info (click to toggle)
linuxdoc-tools 0.9.86-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,312 kB
  • sloc: ansic: 16,247; perl: 3,769; sh: 1,134; makefile: 813; lex: 566; lisp: 309
file content (59 lines) | stat: -rw-r--r-- 1,065 bytes parent folder | download | duplicates (7)
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
#! /bin/make -f
#
# Makefile to convert the example.sgml

# old multiple commands way
# COMMAND=sgml2

# new single command approach
COMMAND=linuxdoc --backend=

srcfiles = example.sgml example-tr.sgml logo.png logo.eps.gz Makefile
allext   = .txt .html .tex .dvi .ps .pdf .info .lyx .rtf
files    = $(addprefix example, $(allext))
trfiles  = $(addprefix example-tr, $(allext))
allfiles = $(files) $(trfiles)

all: $(allfiles)
	@echo "all output formats are created!"


%.txt: %.sgml
	$(COMMAND)txt $<

%.html: %.sgml
	$(COMMAND)html  $<

%.tex: %.sgml
	$(COMMAND)latex -o tex  $<

%.dvi: %.sgml logo.eps
	$(COMMAND)latex -o dvi  $<

%.ps: %.sgml logo.eps
	$(COMMAND)latex -o ps  $<

%.pdf: %.sgml logo.eps
	$(COMMAND)latex -o pdf  $<

%.info: %.sgml
	$(COMMAND)info  $<

%.lyx: %.sgml logo.eps
	$(COMMAND)lyx  $<

%.rtf: %.sgml
	$(COMMAND)rtf $<

logo.eps: logo.eps.gz
	gzip -d -c $< > $@

pack: distclean
	tar -cvzf ../linuxdoc-test-tr.tar.gz $(srcfiles)

distclean: clean
	rm -f *~ logo.eps

clean:
	rm -f *.txt *.html *.tex *.dvi *.ps *.pdf *.info *.lyx *.rtf